Core modules fail after upgrade to 2.2.17 Topic is 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.
Post Reply
webform
Power Poster
Power Poster
Posts: 460
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Core modules fail after upgrade to 2.2.17

Post by webform »

I've upgraded a couple of sites from 2.2.16 to 2.2.17 and a couple of core modules now fails.

FileManager (Blank page with directory names and links visible)
News (Blank page with Add Article and article links visible. If i click Add Article the page loads correctly)
DesignManager
- Templates (Not loading templates)
- Stylesheets (Not loading stylesheets)

I've tried both default installer and expanded installer on different sites, but same result.
I've tried to copy files and folders from a fresh install, but still same error.

All the errors is also present in a new clean install. So it's proberly something in my server setup that is wrong?

Code: Select all

----------------------------------------------

Cms Version: 2.2.17

Installed Modules:

AdminSearch: 1.0.6
CMSContentManager: 1.1.10
CMSMSExt: 1.4.1
CmsJobManager: 0.1.3
CustomGS: 3.4
DesignManager: 1.1.10
ECB2: 2.2.1
FileManager: 1.6.13
FilePicker: 1.0.6
FormBuilder: 1.2
LISE: 1.5.3
LISELessons: 1.5.3
LISEProjects: 1.5.3
LISEReports: 1.5.3
LISESlideshow: 1.5.3
MAMS: 1.0
MenuManager: 1.50.3
MicroTiny: 2.2.5
ModuleManager: 2.1.9
Navigator: 1.0.9
News: 2.51.12
Search: 1.53
SmartImage: 1.1.0
SmartyExt: 1.2

Config Information:

php_memory_limit:
max_upload_size: 1024000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Copenhagen
permissive_smarty: true

Php Information:

phpversion: 8.1.5
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22527
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: 1024M
max_execution_time: 300
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Failure
file_uploads: On (True)
post_max_size: 1024M
upload_max_filesize: 1024M
session_save_path: C:\Windows\TEMP (0777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: Off (False)
curl: On

Performance Information:

allow_browser_cache: On (True)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:

Server Software: Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.5
Server Api: apache2handler
Server Os: WINNT 10.0 On AMD64
Server Db Type: MySQL (mysqli)
Server Db Version: 8.0.31
Server Db Grants: Could not find a suitable "GRANT ALL" permission, this does not necessarily lead to problems... But if you have problems installing/removing modules or adding and deleting items/pages this could be the cause!

Permission Information:

tmp: C:\Apache24\htdocs\prototypes\app\learn\tmp (0777)
tmp_cache: C:\Apache24\htdocs\prototypes\app\learn\tmp\cache (0777)
templates_c: C:\Apache24\htdocs\prototypes\app\learn\tmp\templates_c (0777)
modules: C:\Apache24\htdocs\prototypes\app\learn\modules (0777)
uploads: C:\Apache24\htdocs\prototypes\app\learn\uploads (0777)
File Creation Mask (umask): C:\Apache24\htdocs\prototypes\app\learn\tmp\cache (0777)
config_file: 0444
----------------------------------------------
webform
Power Poster
Power Poster
Posts: 460
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: Core modules fail after upgrade to 2.2.17

Post by webform »

When i check the server error log, i see this as the most common error:

Code: Select all

PHP Fatal error:  Uncaught Error: Class "IntlDateFormatter" not found in C:\\Apache24\\htdocs\\cmsms\\lib\\compat.functions.php:103
That may also explains why a LISE Instance fails with Ajax Error for the item overview as i've set Date Created to be displayed in the item overview.
webform
Power Poster
Power Poster
Posts: 460
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: Core modules fail after upgrade to 2.2.17

Post by webform »

Hmm! It seems like the field Date Format String in Global Settings cannot be empty.

As soon i fill in some Date Format String all modules evens my LISE instance starts working again.
brentnl
Power Poster
Power Poster
Posts: 493
Joined: Mon May 11, 2009 4:35 pm

Re: Core modules fail after upgrade to 2.2.17

Post by brentnl »

I've the same problem, but filling '%V,%G,%Y' for example as Date Format String doesn't fix the problem. My LISE instances are working, but also getting a blank page at the design manager at the templates/stylesheets-tab. Also the file manager gives an error;

Code: Select all

Fatal error: Uncaught Error: Class "IntlDateFormatter" not found in /home/deb1193452345917/domains/domein.nl/public_html/lib/compat.functions.php:103 Stack trace: #0 /home/deb1193452345917/domains/domein.nl/public_html/lib/compat.functions.php(226): CMSMS\{closure}() #1 [internal function]: CMSMS\{closure}() #2 /home/deb1193452345917/domains/domein.nl/public_html/lib/compat.functions.php(228): preg_replace_callback() #3 /home/deb1193452345917/domains/domein.nl/public_html/lib/plugins/modifier.cms_date_format.php(106): CMSMS\strftime() #4 /home/deb1193452345917/domains/domein.nl/public_html/tmp/templates_c/FileManager^e97925fbb1dcac0611e24940ad8d3b768bb7136d_0.module_file_tpl.FileManagerfilemanager.tp.php(228): smarty_modifier_cms_date_format() #5 /home/deb1193452345917/domains/domein.nl/public_html/lib/smarty/sysplugins/smarty_template_resource_base.php(123): content_64b3ea147e2c10_39571112() #6 /home/deb1193452345917/domains/domein.nl/public_html/lib/smarty/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #7 /home/deb1193452345917/domains/domein.nl/public_html/lib/smarty/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render() #8 /home/deb1193452345917/domains/domein.nl/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #9 /home/deb1193452345917/domains/domein.nl/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute() #10 /home/deb1193452345917/domains/domein.nl/public_html/lib/classes/internal/class.CMS_Smarty_Template.php(20): Smarty_Internal_TemplateBase->fetch() #11 /home/deb1193452345917/domains/domein.nl/public_html/lib/classes/internal/class.Smarty_CMS.php(376): CMS_Smarty_Template->fetch() #12 /home/deb1193452345917/domains/domein.nl/public_html/lib/classes/internal/module_support/modtemplates.inc.php(142): Smarty_CMS->fetch() #13 /home/deb1193452345917/domains/domein.nl/public_html/lib/classes/class.CMSModule.php(2617): cms_module_ProcessTemplate() #14 /home/deb1193452345917/domains/domein.nl/public_html/modules/FileManager/action.admin_fileview.php(190): CMSModule->ProcessTemplate() #15 /home/deb1193452345917/domains/domein.nl/public_html/modules/FileManager/action.defaultadmin.php(49): include('/home/deb1193452345917...') #16 /home/deb1193452345917/domains/domein.nl/public_html/lib/classes/class.CMSModule.php(1407): include('/home/deb1193452345917...') #17 /home/deb1193452345917/domains/domein.nl/public_html/lib/classes/class.CMSModule.php(1483): CMSModule->DoAction() #18 /home/deb1193452345917/domains/domein.nl/public_html/admin/moduleinterface.php(74): CMSModule->DoActionBase() #19 {main} thrown in /home/deb1193452345917/domains/domein.nl/public_html/lib/compat.functions.php on line 103

Code: Select all

----------------------------------------------

Cms Version: 2.2.17

Installed Modules:

AceEditor2: 1.05
AdminSearch: 1.0.6
CGBetterForms: 1.10.4
CGContentUtils: 2.5.4
CGExtensions: 1.65.2
CGSimpleSmarty: 2.2.1
CGSmartImage: 1.22.4
CMSContentManager: 1.1.10
CMSMailer: 6.2.14
Captcha: 1.0.1
CmsJobManager: 0.1.3
DesignManager: 1.1.10
FileManager: 1.6.13
FilePicker: 1.0.6
FormBuilder: 1.2
Gallery: 2.4.3
LISE: 1.5.4
LISEFAQ: 1.5.4
LISETeam: 1.5.4
MenuManager: 1.50.3
MicroTiny: 2.2.5
ModuleManager: 2.1.9
Navigator: 1.0.9
News: 2.51.12
Search: 1.53

Config Information:

php_memory_limit:
max_upload_size: 32000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Amsterdam
permissive_smarty: false

Php Information:

phpversion: 8.0.28
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22527
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: 96M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 4096
disable_functions: system, exec, shell_exec, passthru, proc_get_status, proc_nice, proc_terminate, dl, popen, pcntl_exec
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 32M
session_save_path: /opt/alt/php80/var/lib/php/session (0700)
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: On (True)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: On (True)
smarty_compilecheck: On (True)
auto_clear_cache_age: On (True)
Server Information:

Server Software: Apache
Server Api: litespeed
Server Os: Linux 4.18.0-305.17.1.lve.el8.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.5.20
Server Db Grants: Could not find a suitable "GRANT ALL" permission, this does not necessarily lead to problems... But if you have problems installing/removing modules or adding and deleting items/pages this could be the cause!

Permission Information:

tmp: /home/deb119234917/domains/domein.nl/public_html/tmp (0777)
tmp_cache: /home/deb119234917/domains/domein.nl/public_html/tmp/cache (0755)
templates_c: /home/deb119234917/domains/domein.nl/public_html/tmp/templates_c (0755)
modules: /home/deb119234917/domains/domein.nl/public_html/modules (0777)
uploads: /home/deb119234917/domains/domein.nl/public_html/uploads (0777)
File Creation Mask (umask): /home/deb119234917/domains/domein.nl/public_html/tmp/cache (0755)
config_file: 0444
----------------------------------------------
Weird enough another website is working great. Same CMS version, same host, same php version/settings.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Core modules fail after upgrade to 2.2.17

Post by DIGI3 »

In your PHP configuration, enable the extension INTL, or ask your host to if you don't have access. We'll be releasing an update soon to work around this for people unable to activate it.
Not getting the answer you need? CMSMS support options
jce76350
Beta Tester
Beta Tester
Posts: 2033
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: Core modules fail after upgrade to 2.2.17

Post by jce76350 »

Hi brentnl,

Try to install the Révision 13049 -- fallback for our own strftime in cases when IntlDateFormatter is not available;
Jean-Claude Etiemble
brentnl
Power Poster
Power Poster
Posts: 493
Joined: Mon May 11, 2009 4:35 pm

Re: Core modules fail after upgrade to 2.2.17

Post by brentnl »

DIGI3 wrote: Sun Jul 16, 2023 1:14 pm In your PHP configuration, enable the extension INTL, or ask your host to if you don't have access. We'll be releasing an update soon to work around this for people unable to activate it.
Thanks! This worked. Does it has any downside?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Core modules fail after upgrade to 2.2.17

Post by DIGI3 »

Not really, other than probably a bit of memory footprint like any php extension. Once 2.2.18 is out you can disable it again if you like.
Not getting the answer you need? CMSMS support options
Post Reply

Return to “CMSMS Core”