Hi All, I have never encountered this problem and couldn't find any solution. I just logged in to my account, wanted to add Revolut Payment gateway. I have downloaded the mod and installed successfully but now, when I go to Extensions, everything is greyed out and I cannot even scroll. All categories look like that. Any idea what I can do? I have already tried different browsers but no luck. Thank you.
Attachments
OCextensions.JPG (159.69 KiB) Viewed 742 times
Hi,
to fix this change the line 18 of file admin/controller/extension/extension/promotion.php
from
to
Refresh the modification and you are ready!
to fix this change the line 18 of file admin/controller/extension/extension/promotion.php
from
Code: Select all
return $response;
Code: Select all
return '';
https://www.aboutnet.gr
Κατασκευή Ιστοσελίδων & E-shop
Could it be that your admin user doesn't have the necessary permissions?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Thank you both. I definitely have permissions as I have installed more Extensions in the past with no issues. I'm always cautious about changing code because this should not be necessary especially when there were no updates to the platform.
The issue seems to be that the OPENCART_SERVER is using Cloudflare, which is messing up the response when retrieving the advert.
The request in admin/controller/extension/extension/promotion.php should be checking for a correct response before sending to the view.
Changing.
To.
The request in admin/controller/extension/extension/promotion.php should be checking for a correct response before sending to the view.
Changing.
Code: Select all
if ($response) {
Code: Select all
if ($response && curl_getinfo($curl, CURLINFO_HTTP_CODE) === 200) {
I prefer this solution - at least the ads/promotions banner will continue to show up correctly after the server issue has been rectified.ADD Creative wrote: ↑Thu Apr 25, 2024 7:31 pmThe issue seems to be that the OPENCART_SERVER is using Cloudflare, which is messing up the response when retrieving the advert.
The request in admin/controller/extension/extension/promotion.php should be checking for a correct response before sending to the view.
Changing.To.Code: Select all
if ($response) {
Code: Select all
if ($response && curl_getinfo($curl, CURLINFO_HTTP_CODE) === 200) {
Check out our ever-growing list of extension for OpenCart: https://www.opencart.com/index.php?rout ... =softmonke.
Reach out to us at hello@softmonke.com for your OpenCart web development needs.
I opened the same problem viewtopic.php?t=233602, but what is changed in 24 hours, because yesterday I was able to change the settings for my customers without any problems.
Thanks the fix helped. But that is not the way. I am always afraid that just like with licensing of modules, the connection does not work between the servers. Then your shop is down or no checkout is possible.
Thanks the fix helped. But that is not the way. I am always afraid that just like with licensing of modules, the connection does not work between the servers. Then your shop is down or no checkout is possible.
Maybe it makes sense to also add this fix to the upcoming OC 3.0.4.0 , too? The opencart.com uses CloudFlare which is known to cause quite few problems.ADD Creative wrote: ↑Thu Apr 25, 2024 7:31 pmThe issue seems to be that the OPENCART_SERVER is using Cloudflare, which is messing up the response when retrieving the advert.
The request in admin/controller/extension/extension/promotion.php should be checking for a correct response before sending to the view.
Changing.To.Code: Select all
if ($response) {
Code: Select all
if ($response && curl_getinfo($curl, CURLINFO_HTTP_CODE) === 200) {
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I've done a pull request.JNeuhoff wrote: ↑Thu Apr 25, 2024 11:50 pmMaybe it makes sense to also add this fix to the upcoming OC 3.0.4.0 , too? The opencart.com uses CloudFlare which is known to cause quite few problems.
https://github.com/opencart/opencart/pull/13894
Who is online
Users browsing this forum: No registered users and 24 guests