Page 1 of 1

The requested URL was not found on this server

Posted: Fri Oct 25, 2019 9:14 am
by Masweb
Since we use php 7.1 (or 7.3) we have some problem to submit some pages.

For example:

If I open the page Settings - Global Settings
and press direcltly the submit button we will get

Not Found
The requested URL was not found on this server.

Even if we press the "Cancel" button we will get this messages.

As we delete the text in the text field: Global Metadata and submit or cancel it looks like it works. There are no strange things in the text field. Even if there is only <meta charset="utf-8"> it will not submit en we will get this.

Same thing we will get by submitting some pages templates and if we add more the 50 images in the Gallery.



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

Cms Version: 2.2.12

Installed Modules:

AdminSearch: 1.0.4
CGBlog: 1.15.13
CGCalendar: 2.6.2
CGExtensions: 1.64.10
CGFeedback: 2.2.6
CGJobMgr: 1.3.6
CGSimpleSmarty: 2.2.1
CGUserDirectory: 1.5.1
CMSContentManager: 1.1.8
CMSMailer: 6.2.14
CmsJobManager: 0.1.3
DesignManager: 1.1.6
FileManager: 1.6.9.1
FilePicker: 1.0.4.1
FormBuilder: 0.8.1.6
FrontEndUsers: 3.1.5
GBFilePicker: 1.3.3
Gallery: 2.4
JMFilePicker: 1.0.1
JQueryTools: 1.4.2
LISE: 1.3.1
LISEIndexMapenMarsboekjes: 1.3.1
LISEMP3player: 1.3.1
LISEWie: 1.3.1
ListIt2: 1.4.1
MenuManager: 1.50.3
MicroTiny: 2.2.4
ModuleManager: 2.1.7
NMS: 2.13.3
Navigator: 1.0.9
News: 2.51.7
Search: 1.51.7
ThemeManager: 1.1.8
TinyMCE: 3.3

Config Information:

php_memory_limit:
max_upload_size: 64000000
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: 7.3.10
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: 512M
max_execution_time: 120
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir: /home/shk/:/tmp/:/var/tmp/:/usr/local/php73/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/php56/lib/:/usr/local/php70/lib/:/usr/local/php71/lib/:/usr/local/lib/php/
test_remote_url: Success
file_uploads: On (True)
post_max_size: 64M
upload_max_filesize: 64M
session_save_path: No check because open basedir active
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)
auto_clear_cache_age: Off (False)
Server Information:

Server Software: Apache/2.4.39 (Unix) OpenSSL/1.0.1e-fips
Server Api: fpm-fcgi
Server Os: Linux 2.6.32-042stab128.2 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.6.42
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:

tmp: /home/shk/domains/striepersgatsehofkapel.nl/public_html/tmp (0777)
tmp_cache: /home/shk/domains/striepersgatsehofkapel.nl/public_html/tmp/cache (0777)
templates_c: /home/shk/domains/striepersgatsehofkapel.nl/public_html/tmp/templates_c (0777)
modules: /home/shk/domains/striepersgatsehofkapel.nl/public_html/modules (0777)
uploads: /home/shk/domains/striepersgatsehofkapel.nl/public_html/uploads (0777)
File Creation Mask (umask): /home/shk/domains/striepersgatsehofkapel.nl/public_html/tmp/cache (0777)
config_file: 0444
----------------------------------------------

Re: The requested URL was not found on this server

Posted: Fri Oct 25, 2019 3:33 pm
by DIGI3
Check with your host that mod_security is not enabled. If you have cPanel, you may be able to check and/or disable it there but not always.

If it is enabled, have them either disable it, or check for the rules that were triggered around the time you had these issues and whitelist them.

Re: The requested URL was not found on this server

Posted: Mon Oct 28, 2019 3:27 pm
by Masweb
Thanks, works for templates and setting pages.

Still same error if I add more then 50 images on a gallery.
Looks like this is another problem them.

Re: The requested URL was not found on this server

Posted: Mon Oct 28, 2019 3:31 pm
by DIGI3
If nothing shows in your php error logs for that one, I would bet that it's your host limiting the number of processes. That again may be something you can view (but not change) in cPanel, just refresh cPanel a few times as the images start to process and see if any of the status bars go into the red.

Note I'm just guessing here - your host may be able to provide more insight.

Re: The requested URL was not found on this server

Posted: Mon Oct 28, 2019 3:47 pm
by Masweb
Hi,

We use DirectAdmin and can change the php.ini myself.
I've change max_file_uploads = 20 to max_file_uploads = 200

I have to be more clear on this one, I think

If we make a new Gallery and drop in, let say, 60 images, everything looks fine. Even the images are visible at the frontend. But if we want to change something in this Gallery, add a title or change the sort order, and we click on "save" them we get:

Not Found
The requested URL was not found on this server.

Re: The requested URL was not found on this server

Posted: Mon Oct 28, 2019 9:20 pm
by DIGI3
I don't think changing PHP settings would fix this - those sorts of issues would show an error or at least put something in your log. I think these might be a maximum number of iops or processes your host is allowing, and anything over is triggering a firewall rule. That or it's another mod_security rule unless you're positive that's disabled.

I just tested sorting and changing a gallery of ~250 images and didn't have any issue, and didn't see any spikes in the number of processes or memory usage so I don't think there's a bug in the module causing it.