Page 1 of 1

[solved] My Account page goes error 500 after upgrade

Posted: Tue Mar 07, 2017 5:57 pm
by paulbaker
This site was 1.12.1 and I have just upgraded it successfully (in that front end works perfectly) to 2.1.6.

When editing a page on the upgraded site I noticed that there was no WYSIWYG editor. On the 1.12.1 site this worked and MicroTiny was selected as the WYSIWYG to use on the My Preferences > My Account page.

On the upgraded site, I try to access My Preferences > My Account and I get a 500 error white page.

PHP error:
[07-Mar-2017 17:38:46 Europe/London] PHP Fatal error: Uncaught exception 'LogicException' with message 'This method can only be called for admin requests' in /home/cthuk/public_html/kingsley/lib/classes/class.CmsAdminUtils.php:77
Stack trace:
#0 /home/cthuk/public_html/kingsley/lib/classes/class.CmsAdminThemeBase.php(1242): CmsAdminUtils::get_generic_url('index.php?_sk_=')
#1 /home/cthuk/public_html/kingsley/lib/classes/class.CmsAdminThemeBase.php(1277): CmsAdminThemeBase->GetAdminPages()
#2 /home/cthuk/public_html/kingsley/adminks/myaccount.php(270): CmsAdminThemeBase->GetAdminPageDropdown('homepage', '', 'homepage')
#3 {main}
thrown in /home/cthuk/public_html/kingsley/lib/classes/class.CmsAdminUtils.php on line 77
I have cleared cache.

Help? ???

----------------------------------------------
Cms Version: 2.1.6
Installed Modules:
AdminSearch: 1.0.2
CMSContentManager: 1.1.4
CMSMailer: 6.2.14
DesignManager: 1.1.1
FileManager: 1.5.2
LISE: 1.2.3
LISEFeedback: 1.2.3
LISEPeople: 1.2.3
MenuManager: 1.50.2
MicroTiny: 2.0.3
ModuleManager: 2.0.5
Navigator: 1.0.3
News: 2.50.6
Search: 1.50.2
ThemeManager: 1.1.8

Config Information:
php_memory_limit:
max_upload_size: 50000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false

Php Information:
phpversion: 5.6.24
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: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 50M
upload_max_filesize: 50M
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: Off (False)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.18-508.el5.lve0.8.90 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.6.33
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /home/cthuk/public_html/kingsley/tmp (0755)
tmp_cache: /home/cthuk/public_html/kingsley/tmp/cache (0755)
templates_c: /home/cthuk/public_html/kingsley/tmp/templates_c (0755)
modules: /home/cthuk/public_html/kingsley/modules (0755)
uploads: /home/cthuk/public_html/kingsley/uploads (0755)
File Creation Mask (umask): /home/cthuk/public_html/kingsley/tmp/cache (0755)
config_file: 0444
----------------------------------------------

Re: My Account page goes error 500 after upgrade

Posted: Tue Mar 07, 2017 6:39 pm
by calguy1000
Try logging in as a different admin account, and see if you can access 'My Account' there.

Looks like there's something weird with your homepage preference.

Re: My Account page goes error 500 after upgrade

Posted: Tue Mar 07, 2017 6:39 pm
by paulbaker
Further, I notice that the small blue round "?" icons do not open up help windows when clicked as they should.

I also see "-1" in the Parent box on the Edit Content Page page, see image.
whyuseus.jpg

Re: My Account page goes error 500 after upgrade

Posted: Tue Mar 07, 2017 6:48 pm
by paulbaker
Thanks Calguy. I just logged in as another user (who existed in the pre-upgrade site) and the My Account page works normally. I set that user's preference to MicroTiny and that works as I would expect too, able to edit the Pages OK. Blue help buttons work normally too, popping up help.

Logged back in as main admin and that is also all working OK now.......how very odd... :D