I developed my site in localhost server, everything is tested and working fine and ready for deployment. Then I found a webhost and deployed my site few days ago.
In live environment, I got this warning message when I login as an authenticated user,
"warning: Attempt to assign property of non-object in /home/babymiss/www/www/includes/theme.inc on line 1816."
I checked the line 1816 in the Theme.inc document (pasted below) and it seems that it is related to the Language.
line 1816: $variables['language']->dir = $GLOBALS['language']->direction ? 'rtl' : 'ltr';
Besides English, I have 2 other languages in my site. However when I switched to other language, the site al;ways returned a BLANK White page.
It was strange that the above problems can only be found when I login as authenticated user. Everything is working fine when I just browse the site as an annoymous user.... does anybody here knows what is wrong? Thanks a million!
Comments
Error diagnostics
Hi Ken,
I don't think your problem has anything to do with the i18n module. At least I can switch between languages without problem, though I get the same error message. You should check the following to isolate the problem:
You will find further advice at http://drupal.org/Troubleshooting-FAQ.
hth
Frank
problem fixed
Frank,
I have checked all the steps that you mentioned, but all of them are not the cause of the problem. I compare the PHP server config between my localhost and the host, and found that the cause of this problem come from the fact that the PHP Registers_global set to 'ON' in the HOST, while it should be turned off. Once it is turned off, the problem fixed.