loginstyle.php not loading - server 500 error [solved]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 203
Joined: Sun Sep 05, 2010 6:11 am

loginstyle.php not loading - server 500 error [solved]

Post by chrisbt »

I have an issue with loginstyle.php not loading for the login page, so page is rendered without any CSS.

The reported error is a server 500 error. The same result happens on multiple browsers/machines, and on 2 different test sites, both 2.1.2.

If I navigate directly to /admin/loginstyle.php or if debug mode is turned on then it all works perfectly and css is delivered.

I am sure I have had a similar issue in the past with older installations but never got to the bottom of it. I would like to solve this now with the lovely new CMSMS v2 and make it look 100% from start to finish with a new client's website.

----------------------------------------------
Cms Version: 2.1.2
Installed Modules:
AdminSearch: 1.0
CGExtensions: 1.51.1
CGFeedMaker: 1.0.20
CGFeedback: 1.7.5
CGGoogleMaps2: 0.99.3
CGSimpleSmarty: 2.0.5
CGSmartImage: 1.21
CMSContentManager: 1.1
CMSMailer: 6.2.14
Captcha: 0.5.2
CustomGS: 2.1
DesignManager: 1.1.1
ECB: 1.7.1
FileManager: 1.5.2
FormBuilder: 0.8.1.3
Gallery: 2.1
JMFilePicker: 1.0
JQueryTools: 1.3.8
LISE: 1.1
LISEWidgets: 1.1
MenuManager: 1.50.2
MicroTiny: 2.0.3
ModuleManager: 2.0.2
Navigator: 1.0.2
News: 2.50.4
Outsourcer: 1.3.1
Search: 1.50.2
TinyMCE: 3.1.2

Config Information:
php_memory_limit:
max_upload_size: 32000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false

Php Information:
phpversion: 5.6.16
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 120
register_globals: Off (False)
output_buffering: 1
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 32M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.32-431.29.2.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.47
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /home/binnodev/public_html/oldvillageshop2/tmp (0755)
tmp_cache: /home/binnodev/public_html/oldvillageshop2/tmp/cache (0755)
templates_c: /home/binnodev/public_html/oldvillageshop2/tmp/templates_c (0755)
modules: /home/binnodev/public_html/oldvillageshop2/modules (0755)
uploads: /home/binnodev/public_html/oldvillageshop2/uploads (0755)
File Creation Mask (umask): /home/binnodev/public_html/oldvillageshop2/tmp/cache (0755)
config_file: 0644
----------------------------------------------
Last edited by chrisbt on Wed Mar 09, 2016 9:12 pm, edited 1 time in total.
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 203
Joined: Sun Sep 05, 2010 6:11 am

Re: loginstyle.php not loading - server 500 error

Post by chrisbt »

I'm nott sure I am any closer to a solution, however I have found that if I set (in php.ini), the loginstyle.php loads perfectly:
display_errors = On

Also (although not sure if it is related), if I set the following:
error_reporting = E_ALL & ~E_DEPRECATED

I get the error message: Notice: Only variable references should be returned by reference in /home/binnodev/public_html/oldvillageshop2/lib/classes/class.useroperations.inc.php on line 212

I can't find any errors reported anywhere to work out why loginstyle.php is just returning a server error.

Any suggestions?

Thanks

Chris
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 203
Joined: Sun Sep 05, 2010 6:11 am

Re: loginstyle.php not loading - server 500 error

Post by chrisbt »

Ok... I think I finally got there:

realised that I should not have had the following in php.ini (actually .user.ini):
display_errors = Off

It's been there for years, can't even remember why it was added!

It's now gone, and admin login CSS is back :)
Locked

Return to “CMSMS Core”