Page 1 of 1

Maintenance settings do not update

Posted: Mon Sep 28, 2020 8:14 pm
by zzmarker
Hello,

I moved the site from developer site to production server. I can see on admin side that the webpage is working properly. But I can't change Maintenance setting from "down for maintenace" to "NO" so that the site can be seen in public.

And when I try to change it to "No" - I get a message "The requested URL was not found on this server" In the address bar there is https//...../siteprefs.php?__c=f9a2398ae0146428254. I have modified the database by chancing siteprefs value to f9a2398ae0146428254. That does not help.

I have version 2.2.13 with PHP 7.4

What is the problem

Re: Maintenance settings do not update

Posted: Mon Sep 28, 2020 8:41 pm
by DIGI3
After moving:
check there's no urls in config.php
check there's no urls in .htaccess
clear the cmsms cache
clear the browser cache

finally, confirm 100% that mod_security isn't enabled. You may have to check with your host, there's no reliable test if you don't have control of it.

Re: Maintenance settings do not update

Posted: Tue Sep 29, 2020 2:10 pm
by zzmarker
Thanks DIGI3 for your answer.

I have checked all other and now I'm waiting answer from my host about mod_security.

Re: Maintenance settings do not update

Posted: Tue Sep 29, 2020 5:13 pm
by velden
I have modified the database by chancing siteprefs value to f9a2398ae0146428254. That does not help
Not sure what you tried and what preference you changed but that surely won't help.

enablesitedownmessage in the cms_siteprefs table should be 0 or non-existent

Double check you don't have a file 'SITEDOWN' in the tmp/cache/ folder. If you have it, delete it.

Re: Maintenance settings do not update - New problem

Posted: Thu Oct 08, 2020 7:42 pm
by zzmarker
Okay, the basic problem solved - host had mod_security enabled.

The site was transferred from develop server and it is working in public fine. But there is an odd problem at the admin side. I cannot modify content pages or add a new page. When I try add a new page I get a blank page and address bar shows: https://xxxx.xx/admin/moduleinterface.php

News are working fine

Some basic is missing???

Re: Maintenance settings do not update

Posted: Thu Oct 08, 2020 7:54 pm
by Rolf
Try to clear CMSMS cache and clear your browser history.

Re: Maintenance settings do not update

Posted: Thu Oct 08, 2020 8:02 pm
by zzmarker
Both done - problem exist

Re: Maintenance settings do not update

Posted: Thu Oct 08, 2020 8:28 pm
by Dr.CSS
Try running install again, it should ask if you want to 'clean up' the install...

Re: Maintenance settings do not update

Posted: Thu Oct 08, 2020 10:46 pm
by DIGI3
Blank page will almost certainly add a line to your php error log describing the issue.

Re: Maintenance settings do not update

Posted: Fri Oct 09, 2020 8:54 am
by zzmarker
Thanks for your swift answers.

I did not run install again yet.

Error log showewd: PHP Fatal error: Uncaught Error: Call to undefined function mb_strtolower() in /home/hytsfi/public_html/lib/misc.functions.php:821

PHP extensions: mbstring is enabled

Another question: I have enabled opcache in php extensions (php 7.4) but CMSMS system info shows (also after clearing cache):
PHP 5.5+ Opcode Cache Warning Unabled (Untrue)

Re: Maintenance settings do not update

Posted: Fri Oct 09, 2020 3:29 pm
by DIGI3
I would verify with a phpinfo() that the settings you're changing are, in fact, changing. You may have to restart php on your server after changing them, depending upon your host configuration. These may be things you need to discuss with your host or server admin.

Re: Maintenance settings do not update

Posted: Sat Oct 10, 2020 7:18 am
by zzmarker
Yeah, phpinfo() shows that opcache is disabled. I have coctacted my host and waiting for their answer.

Re: Maintenance settings do not update [solved]

Posted: Mon Oct 12, 2020 2:49 pm
by zzmarker
All is now working. The host had not activated those extensions (opcacahe and mbstring) - and I mark this thread as [solved]

Thanks for your help - I appreciate.
Matti