Got these errors after uploading to server

General questions about CMSimple
Post Reply
jwndev
Posts: 26
Joined: Thu Mar 22, 2012 4:58 pm

Got these errors after uploading to server

Post by jwndev » Thu Apr 19, 2012 12:00 am

Hi guys,

I uploaded the whole site upload to a hosting server and got this error:

Code: Select all

Language file for Plugin Loader not found!
File: ../plugins/pluginloader/languages/en.php
Current Path: /su/index.php
but the file actually exists in the right place.

Code: Select all

Could not write to file
./su/content/pagedata.php 
this file permission is set to 0644. I only have ftp connection. Who knows how to reset the permission of this file?

Page layout is broken. Please see:

http://www.hicalgary.com/suhome

Please advice.

Thanks,
jwn
Last edited by jwndev on Thu Apr 19, 2012 2:07 am, edited 1 time in total.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Got these errors after uploading to server

Post by cmb » Thu Apr 19, 2012 12:48 am

Hi jwndev,
jwndev wrote:but the file actually exists in the right place.
Indeed it does, but CMSimple looks in the wrong place! Instead of ./plugins/pluginloader/languages/en.php it looks for ../plugins/pluginloader/languages/en.php (one folder above)!

That's triggered by the fact, that the root directory consists of 2 letters (su), so CMSimple assumes, it is a second language, and looks in the folder above for plugins/. I assume you cannot change the name of the root folder of the installation. So as a quick workaround, you might spare the primary language, and put the English part of the website to a subfolder en/ (as it's done for zh/). To redirect visitors that arive at http://www.hicalgary.com/su/, you can change http://www.hicalgary.com/su/index.php to:

Code: Select all

<?php header('Location: http://www.hicalgary.com/su/en/')?>
or even better by using a .htaccess file to do the redirection. But however, this has to be elaborated to process query parameters...

I'm not sure yet, if that'll work properly -- I'll check that out "tomorrow" and report back ASAP.
jwndev wrote:Who knows how to reset the permission of this file?
That's a follow up of the problem: ./su/content/pagedata.php is in fact http://www.hicalgary.com/su/./su/content/pagedata.php, which doesn't exist...

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

jwndev
Posts: 26
Joined: Thu Mar 22, 2012 4:58 pm

Re: Got these errors after uploading to server

Post by jwndev » Thu Apr 19, 2012 4:03 am

cmb wrote:Hi jwndev,
jwndev wrote:but the file actually exists in the right place.
Indeed it does, but CMSimple looks in the wrong place! Instead of ./plugins/pluginloader/languages/en.php it looks for ../plugins/pluginloader/languages/en.php (one folder above)!
...
Christoph
Hi Christoph,

Thanks again for all your help. This explains why it worked on my local computer - I used a longer root folder name. When I uploaded it to the server, I changed the root folder to 2 characters (su) which caused all these issues. I wish I had read through all the docs. ;) I have changed the root folder to suhome on the server which works fine as far as I tested.

I appreciate your kindness and quick response. That saved me from puzzle and confusion.

Take care,
jwn

Post Reply