Himalayan-Academy / Hinduism-Today

Tracking Hinduism Today
0 stars 0 forks source link

Cannot Post to /modules/XJson #9

Closed Brahmanathaswami closed 6 years ago

Brahmanathaswami commented 6 years ago

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

mambax7 commented 6 years ago

OK, I'll look into it.

Brahmanathaswami commented 6 years ago

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.

Brahmanathaswami commented 6 years ago

Any movement on this

mambax7 commented 6 years ago

Looking at this as we speak....

mambax7 commented 6 years ago

It seems to be PHP 7 migration issue: http://php.net/manual/en/migration71.incompatible.php Let me see how to fix that...

Brahmanathaswami commented 6 years ago

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

Brahmanathaswami commented 6 years ago

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.

mambax7 commented 6 years ago

I've fixed that on your server. Please test it if it made a difference.

Brahmanathaswami commented 6 years ago

Well progress? "sort of" now we have a new error:

{"ErrNum":9,"ErrDesc":"No Permission for plug-in"}

Brahmanathaswami commented 6 years ago

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.

Brahmanathaswami commented 6 years ago

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'>

Internal server error

A problem has occurred on our server!

Page is currently unavailable

We are working on a fix
Please come back soon ...

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

Backtrace:
mambax7 commented 6 years ago

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....

Brahmanathaswami commented 6 years ago

Got this response for line 12.

A problem has occurred on our server!

Page is currently unavailable

We are working on a fix
Please come back soon ...

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

mambax7 commented 6 years ago

It's fixed now