Closed Brahmanathaswami closed 6 years ago
OK, I'll look into it.
If REST XML POST Json api are "not your thing" I can get Andre to look at it, he is a wizard. So don't struggle with it in it not obvious it you.
Any movement on this
Looking at this as we speak....
It seems to be PHP 7 migration issue: http://php.net/manual/en/migration71.incompatible.php Let me see how to fix that...
Try to change the file in line 10:
/**
This was related to the "Throw on passing too few function arguments" in PHP 7.1:
http://php.net/manual/en/migration71.incompatible.php
Can you email me exactly the procedure that you use, so I could test issues locally here?
Michae
Thank you for the R & D, We can fix it, (unless on want to learn a new language "Livecode" which it make great stride the "teach children how to code" world (see. https://livecode.org/)
But I think you have enough to do. I am assigned this to myself.
I've fixed that on your server. Please test it if it made a difference.
Well progress? "sort of" now we have a new error:
{"ErrNum":9,"ErrDesc":"No Permission for plug-in"}
I have used on the test site a newer version from Wishcraft that has some changes to the code.
Unfortunately, Wishcraft used the error message: {"ErrNum":9,"ErrDesc":"No Permission for plug-in"}
all over the place, so I am not sure from which exactly location it was coming from.
So right now I am trying to figure out if this is what is causing the problem, or something else on the server itself.
I've changed right now the installation of xjson to the same one you have on the original server.
Could you please test it if it works? If it does, then I'll leave it there, just fix all the issues related to PHP 7.
I get a "site blocked" page:
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
Error : ArgumentCountError: Too few arguments to function FunctionsHandler::__construct(), 0 passed in /home/htoday/public_html/modules/xjson/include/server.php on line 11 and exactly 1 expected
Please try again. I think it was related to the fact that the program is using eval() function, and some of the plugins got removed the closing "?>" tags, but they were needed for the eval() function. Let's see if this works now....
Got this response for line 12.
Error : ArgumentCountError: Too few arguments to function FunctionsHandler::__construct(), 0 passed in /home/htoday/public_html/modules/xjson/include/server.php on line 12 and exactly 1 expected
It's fixed now
Well first test failed (as i suspected)
can you examine the code for the old modules/xjson and compare with new one? Perhaps Simon or Andre hacked it. And we don't have their patches on the new server.
The latest XOOPS gave us this message:
"
Error : ArgumentCountError: Too few arguments to function XoopsModules\Xjson\FunctionsHandler::__construct(), 0 passed in /home/htoday/public_html/modules/xjson/include/server.php on line 36 and exactly 1 expected