- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 19.07.23, 16:45
- Opened by: Madara Mikuda-Rupeika
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #24840 - Problem with PK Menu module
Was creating several static pages today (no direct link to menu), and some menu items started to show disturbed (screenshot attached). Nothing else was done on the website.
Checked the error log and it shows this:
[14-Jul-2023 12:26:14 Etc/GMT+2] PHP Notice: Trying to access array offset on value of type bool in /home/cottonstore/newshop.cotton-store.com/modules/pk_menu/pk_menu.php on line 1409
The same is for - on line 1411, 1416 and 1420.
The problem is seen only on Google Chrome and not on MS Edge or Safari (all checked from desktop versions).
Please help to get the menu back again and get rid of error log. (I also attach error log file for the above copied string)
Comments
Hi, Madara Mikuda-Rupeika.
Please fill out all necessary fields in your profile https://support.promokit.eu/myprofile to access to your FTP Server to let me find and apply a fix
I added FTP information.
I just updated the file /modules/pk_menu/pk_menu.php but how to check error logs now to make sure everything is fixed?
Problem is still there. The second item of the menu is lowered, the first one (Home) is missing the formatting. Error log last strings below.
If I duplicate the menu module, the second menu does not have this problem. We are launching the new website on 1st of August, so please help to get the menu back on track!
[21-Jul-2023 03:40:32 Etc/GMT+2] PHP Notice: Trying to access array offset on value of type bool in /home/cottonstore/newshop.cotton-store.com/modules/pk_menu/pk_menu.php on line 1409
[21-Jul-2023 03:40:32 Etc/GMT+2] PHP Notice: Trying to access array offset on value of type bool in /home/cottonstore/newshop.cotton-store.com/modules/pk_menu/pk_menu.php on line 1411
[21-Jul-2023 03:40:32 Etc/GMT+2] PHP Notice: Trying to access array offset on value of type bool in /home/cottonstore/newshop.cotton-store.com/modules/pk_menu/pk_menu.php on line 1416
[21-Jul-2023 03:40:32 Etc/GMT+2] PHP Notice: Trying to access array offset on value of type bool in /home/cottonstore/newshop.cotton-store.com/modules/pk_menu/pk_menu.php on line 1420
[21-Jul-2023 03:40:32 Etc/GMT+2] PHP Notice: Trying to access array offset on value of type bool in /home/cottonstore/newshop.cotton-store.com/modules/pk_menu/pk_menu.php on line 1420
Can you please check your logs now, since 23:40?
The frontend is now off, Error 500.
Apart from the same error logs posted before, I get also logs since 23:40:
[21-Jul-2023 11:40:41 Etc/GMT+2] PHP Notice: Undefined index: name in /home/cottonstore/newshop.cotton-store.com/var/cache/prod/smarty/compile/alysum/2a/2e/e7/2a2ee787945c38254f2d46e36e1965e6350a0ce2_2.file.customer-form.tpl.php on line 52
[21-Jul-2023 11:40:41 Etc/GMT+2] PHP Notice: Undefined index: type in /home/cottonstore/newshop.cotton-store.com/var/cache/prod/smarty/compile/alysum/a6/49/0c/a6490c91735e1004dfc6193dba54a258f2447fc3_2.file.customer-form.tpl.php on line 58
I’m sorry, my fault, I didn’t notice that. Now it’s fixed, please check
Yes, the frontend is again running, but the menu is still disrupted, visually the same, but the error log has now changed and is only one line now:
[21-Jul-2023 20:01:41 Etc/GMT+2] PHP Parse error: syntax error, unexpected ‘)’, expecting ‘]’ in /home/cottonstore/newshop.cotton-store.com/modules/pk_menu/pk_menu.php on line 1412
as I can see that’s an old error, it should not appear anymore
The menu still looks like this (attached screenshot).
The last error log:
[22-Jul-2023 12:29:46 Etc/GMT+2] PHP Parse error: syntax error, unexpected ‘)’, expecting ‘]’ in /home/cottonstore/newshop.cotton-store.com/modules/pk_menu/pk_menu.php on line 1412
Attachments:
Please give me direct link where I can see that, because everything looks fine for me → https://take.ms/TbgeI
What could be the reason, that I see disturbed menu on Google Chrome and MS Edge (but not Mozilla, which I just installed). Checked other computers and other IP addresses, they see it ok. I even re-installed Google Chrome and still disturbed menu. Any ideas?
Screenshot with all three browsers opened, only Mozilla has normal menu.
Attachments:
I guess you are logged in in one browser and not in another one
We had such issues some time ago, it was caused by sigh in widget.
I just fixed it in the file /modules/pkelements/views/templates/pksignin.tpl please test it out
Thank you! Finally the mystery is gone :) All good now!
Great!