• Resolved hupe13

    (@hupe13)


    I have some problems with iframes in backend. My plugin and an other one use TB_iframes. It works, but the location of the iframe is not okay if “Admin Bar Editor” is active. When I open an iframe, there is a php warning:

    PHP Warning:  Undefined array key "page" in /path/to/wp-content/plugins/admin-bar/Inc/Classes/AdminBarEditorAssets.php on line 252

    The url of both is https://mydomain.tld/wp-admin/admin.php?action=...&....

    At first, I thought I had made a mistake in my plugin code. I fixed some things, but it still isn’t working right. And iframe of the other plugin isn’t okay also.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support jemeeroy

    (@jemeeroy)

    Hi @hupe13

    Thank you so much for getting in touch.

    Can you please let me know which theme you have activated in your webiste and your active theme name please. I will create a similar environment in my local server and debug the issue.

    Thank you

    Thread Starter hupe13

    (@hupe13)

    My theme is GeneratePress, but I tested it with Twenty Twenty-Five also. If you want to test it:

    • See https://wordpress.org/plugins/extensions-leaflet-map/#installation
    • Go to Settings – Leaflet Map – Extensions for Leaflet Map — Manage Leaflet Map files
    • Allow upload of gpx (or other) files to media library — Save
    • Upload a gpx file to Media Library
    • List Files — Show all files — Press List files
    • Click on Preview – the iframe appears

    If Admin Bar Editor isn’t active, the iframe appears right, if it is active, the iframe is on top of screen and some information is not visible.

    The iframe of the other plugin (Photonic) is not full visible on small screens and the php warning appears also.

    Plugin Support jemeeroy

    (@jemeeroy)

    Hello @hupe13

    Thank you so much for in details process to create the issue. I am going to produce this in my local server and after releasing the fix, I will notify you.

    Plugin Support jemeeroy

    (@jemeeroy)

    Hello @hupe13

    Are you seeing the error in this preview of leaflet maps : https://prnt.sc/DRceJE9C2EZL

    I got the issue on Photonic Gallery and we are working on it now: https://prnt.sc/30c12dQXzERA

    I just want to make sure you are talking about this warning message. Please let me know. Also for the leaflet maps I still unable to see the error and I followed everything as you mentioned.

    Please share the screenshoot if possible.

    Thank you so much

    Thread Starter hupe13

    (@hupe13)

    Yes, we are talking about the message you see in the picture with Photonic. You can’t see it on the Leaflet frame because it’s at the very top, and you can’t see the top part of the frame. And this is the problem.

    You see the warnings in a logfile if you take care about Debugging in WordPress.

    Line 252: $_GET['page'] . The url of the frame is without page=....

    By the way: Do you know https://github.com/wordpress/wordpress-coding-standards ?

    If you solved this issue and my iframe is not right yet, maybe my code is wrong or it’s something else other in your code.

    Plugin Support jemeeroy

    (@jemeeroy)

    Hello @hupe13

    We have released the update and fixed this issues. Yes we are aware of the WordPress code standard. Thank you so much for helping us identifying the issue. Please update the plugin and let me know if you still face any problem, we will try our best to assist you.

    Thread Starter hupe13

    (@hupe13)

    Thank you very much, iframes are okay now.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.