Page 1 of 1

Problem with CGFeedback caused by CGExtensions

Posted: Thu May 30, 2019 12:39 pm
by TedMeat
Hello!

I had problems getting CGFeedback to work. First of all the "ratings" -field was not displayed correctly, no drop-down menu but all the ratings were shown on a single line.

After submission of a comment the page was refreshed but it didn't load the header, so no CSS etc. loaded and no comment was submitted.

Also tried it with a completely fresh install of 2.2.10 with empty template & css and no modifications / scripts what so ever. Still didn't work.

After hours of debugging I found that CGFeedback was actually working just fine on another site with older version of CGExtensions. Once I downgraded CGExtensions all the way down to version 1.61 CGFeedback started to work normally. Then I went up one by one and the newest version that works is 1.61.4. With 1.61.5 I start getting the problems mentioned above.

So now it works OK as far as I can tell but I'm afraid I'll run into problems later if I'm forced to update CGExtensions.

CMSMS: 2.2.10 “Spuzzum”
PHP-Version: 7.2

Some stuff from the log for your pleasure. Enjoy:

Code: Select all

[28-May-2019 18:31:14 Europe/Helsinki] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to cge_http::post() must be an instance of areinf, string given, called in /blogtest/modules/CGFeedback/lib/class.stopforumspam_handler.php on line 20 and defined in /blogtest/modules/CGExtensions/lib/class.cge_http.php:97
Stack trace:
#0 /blogtest/modules/CGFeedback/lib/class.stopforumspam_handler.php(20): cge_http::post('https://api.sto...', Array)
#1 /blogtest/modules/CGFeedback/CGFeedback.module.php(242): CGFeedback\stopforumspam_handler->is_spam(Object(CGFeedback\comment))
#2 [internal function]: CGFeedback->check_stopforumspam(Object(CGFeedback\comment))
#3 /blogtest/lib/classes/class.HookManager.php(240): call_user_func_array(Array, Array)
#4 /blogtest/modules/CGFeedback/action.default.php(246): CMSMS\HookManager::do_hook('CGFeedback::Bef...', Object(CGFeedba in /blogtest/modules/CGExtensions/lib/class.cge_http.php on line 97
[28-May-2019 18:46:59 Europe/Helsinki] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to cge_http::post() must be an instance of areinf, string given, called in /blogtest/modules/CGFeedback/lib/class.stopforumspam_handler.php on line 20 and defined in /blogtest/modules/CGExtensions/lib/class.cge_http.php:97
Stack trace:
#0 /blogtest/modules/CGFeedback/lib/class.stopforumspam_handler.php(20): cge_http::post('https://api.sto...', Array)
#1 /blogtest/modules/CGFeedback/CGFeedback.module.php(242): CGFeedback\stopforumspam_handler->is_spam(Object(CGFeedback\comment))
#2 [internal function]: CGFeedback->check_stopforumspam(Object(CGFeedback\comment))
#3 /blogtest/lib/classes/class.HookManager.php(240): call_user_func_array(Array, Array)
#4 /blogtest/modules/CGFeedback/action.default.php(246): CMSMS\HookManager::do_hook('CGFeedback::Bef...', Object(CGFeedba in /blogtest/modules/CGExtensions/lib/class.cge_http.php on line 97
[28-May-2019 18:47:27 Europe/Helsinki] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to cge_http::post() must be an instance of areinf, string given, called in /blogtest/modules/CGFeedback/lib/class.stopforumspam_handler.php on line 20 and defined in /blogtest/modules/CGExtensions/lib/class.cge_http.php:97
Stack trace:
#0 /blogtest/modules/CGFeedback/lib/class.stopforumspam_handler.php(20): cge_http::post('https://api.sto...', Array)
#1 /blogtest/modules/CGFeedback/CGFeedback.module.php(242): CGFeedback\stopforumspam_handler->is_spam(Object(CGFeedback\comment))
#2 [internal function]: CGFeedback->check_stopforumspam(Object(CGFeedback\comment))
#3 /blogtest/lib/classes/class.HookManager.php(240): call_user_func_array(Array, Array)
#4 /blogtest/modules/CGFeedback/action.default.php(246): CMSMS\HookManager::do_hook('CGFeedback::Bef...', Object(CGFeedba in /blogtest/modules/CGExtensions/lib/class.cge_http.php on line 97
[28-May-2019 18:48:07 Europe/Helsinki] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to cge_http::post() must be an instance of areinf, string given, called in /blogtest/modules/CGFeedback/lib/class.stopforumspam_handler.php on line 20 and defined in /blogtest/modules/CGExtensions/lib/class.cge_http.php:97
Stack trace:
#0 /blogtest/modules/CGFeedback/lib/class.stopforumspam_handler.php(20): cge_http::post('https://api.sto...', Array)
#1 /blogtest/modules/CGFeedback/CGFeedback.module.php(242): CGFeedback\stopforumspam_handler->is_spam(Object(CGFeedback\comment))
#2 [internal function]: CGFeedback->check_stopforumspam(Object(CGFeedback\comment))
#3 /blogtest/lib/classes/class.HookManager.php(240): call_user_func_array(Array, Array)
#4 /blogtest/modules/CGFeedback/action.default.php(246): CMSMS\HookManager::do_hook('CGFeedback::Bef...', Object(CGFeedba in /blogtest/modules/CGExtensions/lib/class.cge_http.php on line 97
[28-May-2019 18:48:41 Europe/Helsinki] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to cge_http::post() must be an instance of areinf, string given, called in /blogtest/modules/CGFeedback/lib/class.stopforumspam_handler.php on line 20 and defined in /blogtest/modules/CGExtensions/lib/class.cge_http.php:97
Stack trace:
#0 /blogtest/modules/CGFeedback/lib/class.stopforumspam_handler.php(20): cge_http::post('https://api.sto...', Array)
#1 /blogtest/modules/CGFeedback/CGFeedback.module.php(242): CGFeedback\stopforumspam_handler->is_spam(Object(CGFeedback\comment))
#2 [internal function]: CGFeedback->check_stopforumspam(Object(CGFeedback\comment))
#3 /blogtest/lib/classes/class.HookManager.php(240): call_user_func_array(Array, Array)
#4 /blogtest/modules/CGFeedback/action.default.php(246): CMSMS\HookManager::do_hook('CGFeedback::Bef...', Object(CGFeedba in /blogtest/modules/CGExtensions/lib/class.cge_http.php on line 97
[28-May-2019 18:49:18 Europe/Helsinki] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to cge_http::post() must be an instance of areinf, string given, called in /blogtest/modules/CGFeedback/lib/class.stopforumspam_handler.php on line 20 and defined in /blogtest/modules/CGExtensions/lib/class.cge_http.php:97


Re: Problem with CGFeedback caused by CGExtensions

Posted: Thu May 30, 2019 2:42 pm
by TedMeat
TedMeat wrote: So now it works OK as far as I can tell but I'm afraid I'll run into problems later if I'm forced to update CGExtensions.
Well that didn't take long, run into problems already!

...because if I want to use CGBlog, I need JQuery Tools and that wants me to have CGExtensions 1.62.8 which doesn't work with CGFeedback.

Would not like to install old versions of all the modules. Plz halp :(

Re: Problem with CGFeedback caused by CGExtensions

Posted: Fri May 31, 2019 12:39 pm
by calguy1000
CGExtensions 1.62.8 has a minor typo. It's fixed in SVN I will try to release a new version (1.63) later today, or this weekend.

Re: Problem with CGFeedback caused by CGExtensions

Posted: Fri May 31, 2019 6:57 pm
by TedMeat
Awesome, thank you! We shall wait for the new release:)

Re: Problem with CGFeedback caused by CGExtensions

Posted: Sun Jun 02, 2019 7:13 am
by TedMeat
Upgraded CGExtensions to 1.63 and now the form submission works ok. However the "Your Rating" -field still bugs with 1.63, dropdown doesn't work (see the attached screenshot).

I'll propably remove the rating field for my purposes but thought you should know.
screenshot.png
screenshot.png

Re: Problem with CGFeedback caused by CGExtensions

Posted: Sun Jun 02, 2019 1:31 pm
by calguy1000
I will have a new version of CGFeedback today that adds the one line to get past this issue.