1
nerdypant
ajax load mainfile.php returns 404
  • 2022/5/31 0:24

  • nerdypant

  • Just popping in

  • Posts: 2

  • Since: 2022/5/31


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

2
goffy
Re: ajax load mainfile.php returns 404
  • 2022/5/31 22:25

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


hi
maybe you have a problem with one of the "preload" folders in one of your modules. new modules are using index.php instead of index.html and XOOPS.2.5.10 is not covering this problem.

please install XOOPS.2.5.11

if problem is still existing please let us know which modules you have installed

3
nerdypant
Re: ajax load mainfile.php returns 404
  • 2022/5/31 23:36

  • nerdypant

  • Just popping in

  • Posts: 2

  • Since: 2022/5/31


thank you for the reply. I did have two customer modules that I added that had index.php in the preload folder. I replaced those with index.html and the 404 went away.

Thank you VERY MUCH! I never would have caught that!

Login

Who's Online

367 user(s) are online (242 user(s) are browsing Support Forums)


Members: 0


Guests: 367


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits