Page 1 of 1
[SOLVED] Extension list greyed out OC 3.0.3.8 - caused by calling external advertising banner
Posted: Thu Apr 25, 2024 5:47 pm
by JessiesBoutique
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.
Re: Extension list greyed out OC 3.0.3.8
Posted: Thu Apr 25, 2024 6:33 pm
by aboutnet
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!
Re: Extension list greyed out OC 3.0.3.8
Posted: Thu Apr 25, 2024 6:34 pm
by paulfeakins
Could it be that your admin user doesn't have the necessary permissions?
Re: Extension list greyed out OC 3.0.3.8
Posted: Thu Apr 25, 2024 6:38 pm
by JessiesBoutique
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.
Re: Extension list greyed out OC 3.0.3.8
Posted: Thu Apr 25, 2024 7:31 pm
by ADD Creative
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.
Code: Select all
if ($response && curl_getinfo($curl, CURLINFO_HTTP_CODE) === 200) {
Re: Extension list greyed out OC 3.0.3.8
Posted: Thu Apr 25, 2024 7:45 pm
by softmonke
ADD Creative wrote: ↑Thu Apr 25, 2024 7:31 pm
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.
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.
Re: Extension list greyed out OC 3.0.3.8
Posted: Thu Apr 25, 2024 7:52 pm
by JessiesBoutique
Fantastic. This fixed the issue. Thank you for your help.
Re: Extension list greyed out OC 3.0.3.8
Posted: Thu Apr 25, 2024 9:46 pm
by k2tec
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.
Re: Extension list greyed out OC 3.0.3.8
Posted: Thu Apr 25, 2024 11:50 pm
by JNeuhoff
ADD Creative wrote: ↑Thu Apr 25, 2024 7:31 pm
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.
Code: Select all
if ($response && curl_getinfo($curl, CURLINFO_HTTP_CODE) === 200) {
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.
Re: Extension list greyed out OC 3.0.3.8
Posted: Fri Apr 26, 2024 12:35 am
by ADD Creative
JNeuhoff wrote: ↑Thu Apr 25, 2024 11:50 pm
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.
I've done a pull request.
https://github.com/opencart/opencart/pull/13894
Re: Extension list greyed out OC 3.0.3.8
Posted: Tue Nov 26, 2024 11:38 pm
by tdaubs
I wanted to say thanks for posting this fix! One of my sites started having the 'scroll prevention' issue just yesterday and a client also reached out to me just this morning to report they were also having the issue. The fix did the trick!
Re: Extension list greyed out OC 3.0.3.8
Posted: Wed Nov 27, 2024 12:06 am
by OSWorX
To be honest: who of us needs an advertising banner inside the administration?
The more, when it makes troubles since months?
I understand that Daniel wants to make benefit as much as he can, but this way?
Not really.
And about the "solution" above: I prefer to add a
right after
This way, I prevent the systen to make an extra call to an url the result is for the waste .. and have a few milliseconds more ..
Re: Extension list greyed out OC 3.0.3.8
Posted: Wed Nov 27, 2024 11:48 pm
by siteadvice
ADD Creative wrote: ↑Thu Apr 25, 2024 7:31 pm
Code: Select all
if ($response && curl_getinfo($curl, CURLINFO_HTTP_CODE) === 200) {
Just adding another shout out to ADD Creative for this fix.
Re: Extension list greyed out OC 3.0.3.8
Posted: Fri Nov 29, 2024 2:56 am
by spstore
ADD Creative wrote: ↑Thu Apr 25, 2024 7:31 pm
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.
Code: Select all
if ($response && curl_getinfo($curl, CURLINFO_HTTP_CODE) === 200) {
Just another one that found this solution useful as suddenly the last 3 days, both of my oc 3.0.3.8 stores stopped loading the extension page without any reason.
I tried this and works.
Thanks for the solution!
Re: Extension list greyed out OC 3.0.3.8
Posted: Sun Dec 01, 2024 1:47 am
by furnica10
aboutnet wrote: ↑Thu Apr 25, 2024 6:33 pm
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!
Worked, thank you
Re: [SOLVED] Extension list greyed out OC 3.0.3.8 - caused by calling external advertising banner
Posted: Mon Dec 02, 2024 7:10 pm
by crosland
Happened to me today. It must be atransient issue with Cloudflare as others have seen it at different time.
Why not just bin the whole Fn and simply

Re: [SOLVED] Extension list greyed out OC 3.0.3.8 - caused by calling external advertising banner
Posted: Mon Dec 02, 2024 7:45 pm
by by mona
Re: [SOLVED] Extension list greyed out OC 3.0.3.8 - caused by calling external advertising banner
Posted: Mon Dec 02, 2024 11:55 pm
by crosland
Errm, that is the solution proposed above. I am suggesting remove the rest of the function so the the curl call is never made rather than just changing line 18.