1
I am trying to call $.ajax from a php page and when I try to run
include_once dirname(dirname(__DIR__)) . '/mainfile.php';
It returns with a 404 not found. I think I have narrowed it down to something in the include/common.php being loaded from mainfile.php but I cannot figure out what is generating the 404.
I have done the same type of call in a different module and it appears to functions properly.
Any ideas on where I can track the issue down? I have debug on but get nothing. The onlt thinf I see in FF console is this
Status
404
Not Found
VersionHTTP/1.0
Transferred4.07 KB (3.55 KB size)
Referrer Policystrict-origin-when-cross-origin
php and xoops information:
PHP 7.4.3 (cli) (built: Mar 2 2022 15:36:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
---------------
XOOPS Version XOOPS 2.5.10
PHP Version 7.4.3
mySQL Version 8.0.29-0ubuntu0.20.04.3
Server API apache2handler
OS Linux
fsockopen On
post_max_size 8M
max_input_time 60
output_buffering 4096
max_execution_time 30
memory_limit 128M
file_uploads On
upload_max_filesize 2M