Jump to content

Uncaught Exception: Key "widget" does not exist as the array is empty. // bug/1173575, non-JS module files deprecated. (anonymous) @ (index):6733 // CORS


Kst

Recommended Posts

Hi,

Without enabling debug mode I can't access the admin panel (error 500), and when I check the console it shows an error: "bug/1173575, non-JS module files deprecated.
(anonymous) @ (index):6733", which refers to what you can see in the attached screenshot. 

After enabling debugging and checking for errors, two critical ones appeared:
1. PHP - Uncaught Exception: Key "widget" does not exist as the array is empty.
2. request - Uncaught PHP Exception TwigError TwigError: "Key "widget" does not exist as the array is empty." at /home/.../public_html/src/PrestaShopBundle/Resources/views/Admin/WebProfiler/hooks_collector.html.twig line 153

Line 153 contains the code:
<td>{{ profiler_dump(module.widget.args) }}</td>.

After accessing the shop from the client side, another error is shown in the console:
"Acess to XMLHttpRequest at 'https://.....com/g/collect?v=2&tid=G-6F77G86YC9&gtm=45je3510&_p=1884780751&cid=528063672.1682664482&ul=pl&sr=1920x1080&_fplc=0&uaa=x86&uab=64&uafvl=Chromium%3B112.0.5615.138%7CGoogle%2520Chrome%3B112.0.5615.138%7CNot%253AA-Brand%3B99.0.0.0&uamb=0&uam=&uap=Windows&uapv=10.0.0&uaw=0&sst.uc=PL&sst.gcsub=region1&_s=3&sid=1683189035&sct=5&seg=1&dl=https%3A%2F%2Fwww.aparatsluchowy.com%2F&dt=Aparaty%20s%C5%82uchowe%20-%20szeroki%20wyb%C3%B3r%20i%20niskie%20ceny&en=gtm.dom&ep.event_id=65ee0f4e-5be9-48d2-909e-7941cb8407c0_1683190594261.3&ep.event_name=PageView&_et=2&richsstsse' from origin 'https://www.....com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

Please help me troubleshoot the issues, at this point the most important thing is to be able to use the admin panel.
 

bug_1173575.png

cors bug.png

key widget error.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...