Whc.ca shared hosting
6 posts by 2 authors in: Forums > CMS Builder
Last Post: Yesterday at 11:26am (RSS)
Hey Jeff,
Whc.ca has the psr extension enabled by default. This is causing CMSB developer console to fail to load.
What's the exact error message you're seeing? And is it just the CMSB developer console which fails to load, or any other pages as well?
I also use cacheing with Symphony/Cache via composer.
What is the recommended solution.
The psr extension does conflict with composer's Psr/* packages, because Symfony/Cache requires Psr/Cache, and composer will install it even while the extension is enabled, which creates the conflict.
If your host lets you, you can try disabling the psr extension, as it sounds like that's the most probable fix, but I should be able to give you a more concrete answer if you can provide the exact error message text, along with any other details you have.
interactivetools.com
Hey Jeff,
Even turning off psr does no fix it.
Good to know - that rules out the psr extension.
The developer console is failing to load on ...parameters on functions.
Can you paste the full error message exactly as it appears? The part that's cut-off there is the important diagnostic bit. The easiest place to copy it from is the Admin Menu > Developer Log in CMSB, where PHP errors and warnings get logged. Your server's PHP error log would work too.
Also, what CMSB version are you running? And what PHP version are you on?
interactivetools.com
Cmsb 3.82
Error: Call to undefined function DeveloperConsole\phpConsole()
#0 Script started at /home/xxx/public_html/cmsb/admin.php:0
#1 require() at /home/xxx/public_html/cmsb/admin.php:81
#2 include() at /home/xxx/public_html/cmsb/lib/menus/default/actionHandler.php:62
#3 admin_dispatchAction() at /home/xxx/public_html/cmsb/lib/menus/admin/actionHandler.php:30
#4 require() at /home/xxx/public_html/cmsb/lib/menus/admin/actionHandler.php:81
#5 Itools\Cmsb\Admin\Plugins\activatePluginAction() at /home/xxx/public_html/cmsb/lib/menus/admin/plugins.php:20
#6 activatePlugin() at /home/xxx/public_html/cmsb/lib/menus/admin/plugins.php:261
#7 include() at /home/xxx/public_html/cmsb/lib/plugin_functions.php:309
#8 Error thrown at /home/xxx/public_html/cmsb/plugins/developerConsole/developerConsole.php:30
Operating SystemLinux 4.18.0-553.141.2.lve.el8.x86_64 (release)
- Server Name:redactted Server IP:
redactted - Disk Space Used: 94%202.33 GB free of 3.58 TB (largest dirs)
- Resource Limits: CPU Time:
unlimitedMemory Limit:unlimitedProcesses:400(ulimit) - Last Rebooted: 1 days, 10 hours, 5 minutes ago
Control PanelcPanel (cPanel login, WHM login)
Web ServerLiteSpeed v6.3.6
- Using config file:
/home/xxx/public_html/cmsb/.htaccess - PHP Handler: lsapi V8.3 CloudLinux 1.3
Database ServerMariaDB v10.6.27 (variables & status) - Live SQL Monitor >>
- Settings:
xxx_yaascmsb.cmsb_*(change) - Privileges: index, triggers, views, events, functions, temp tables, lock tables, flush, process
- More...
PHP VersionPHP v8.3.31 (phpinfo) - View Errors and Warnings (1) >>
- Running as xxx and using config files:
/opt/alt/php83/etc/php.ini/home/xxx/public_html/cmsb/.htaccess/opt/alt/php83/link/conf/alt_php.ini/opt/alt/php83/link/conf/clos_ssa.ini
- Security Modules: ModSecurity
- Caching Modules: None detected
- Image Modules: gd, imagick
yaadev.com
Hey Jeff,
Error: Call to undefined function DeveloperConsole\phpConsole()
#0 Script started at /home/xxx/public_html/cmsb/admin.php:0
#1 require() at /home/xxx/public_html/cmsb/admin.php:81
#2 include() at /home/xxx/public_html/cmsb/lib/menus/default/actionHandler.php:62
#3 admin_dispatchAction() at /home/xxx/public_html/cmsb/lib/menus/admin/actionHandler.php:30
#4 require() at /home/xxx/public_html/cmsb/lib/menus/admin/actionHandler.php:81
#5 Itools\Cmsb\Admin\Plugins\activatePluginAction() at /home/xxx/public_html/cmsb/lib/menus/admin/plugins.php:20
#6 activatePlugin() at /home/xxx/public_html/cmsb/lib/menus/admin/plugins.php:261
#7 include() at /home/xxx/public_html/cmsb/lib/plugin_functions.php:309
#8 Error thrown at /home/xxx/public_html/cmsb/plugins/developerConsole/developerConsole.php:30
That error means plugins/developerConsole/consoles/phpConsole.php isn't defining the phpConsole() function it should. The file is loading (the console registrations just above that line worked), but the file's contents are seemingly not what's expected.
Can you check that file on your server? In a stock 3.82 it's 260 lines (about 10 KB), with function phpConsole() near the top. If yours is empty, truncated, or different, re-upload a fresh copy of the plugins/developerConsole/ folder and that should fix it.
If the file matches the stock one, let me know and I'll dig further.
interactivetools.com