Problem with CGFeedback caused by CGExtensions

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
TedMeat
New Member
New Member
Posts: 4
Joined: Thu May 30, 2019 12:10 pm

Problem with CGFeedback caused by CGExtensions

Post 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

TedMeat
New Member
New Member
Posts: 4
Joined: Thu May 30, 2019 12:10 pm

Re: Problem with CGFeedback caused by CGExtensions

Post 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 :(
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Problem with CGFeedback caused by CGExtensions

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
TedMeat
New Member
New Member
Posts: 4
Joined: Thu May 30, 2019 12:10 pm

Re: Problem with CGFeedback caused by CGExtensions

Post by TedMeat »

Awesome, thank you! We shall wait for the new release:)
TedMeat
New Member
New Member
Posts: 4
Joined: Thu May 30, 2019 12:10 pm

Re: Problem with CGFeedback caused by CGExtensions

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Problem with CGFeedback caused by CGExtensions

Post by calguy1000 »

I will have a new version of CGFeedback today that adds the one line to get past this issue.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Modules/Add-Ons”