• Resolved Robin Dirksen

    (@robindirksen1)


    The popup will not show and the following error is visible in the source code of the page:

    
    <b>Warning</b>:  Use of undefined constant overlayEditorCallback - assumed 'overlayEditorCallback' (this will throw an Error in a future version of PHP) in <b>/wp-content/plugins/resoc-social-editor/views/settings.php</b> on line <b>80</b><br />
    
    • This topic was modified 5 years, 2 months ago by Robin Dirksen.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Robin Dirksen

    (@robindirksen1)

    Fix will be in views/settings.php line 80:

    Change:
    init_rse_overlay_editor( overlayEditorCallback );

    to:
    init_rse_overlay_editor( 'overlayEditorCallback' );

    Plugin Author resoc

    (@resoc)

    Hi Robin,

    Oh 🙁 Thank you for reporting!

    For the record, there was another instance of this mistake in includes/lib/class-resoc-social-editor-facebook-editor.php. The fix is committed, ready to be deployed.

    However, something puzzles me. You said that “the popup will not show”, an obvious bug. But the issue you mention with overlayEditorCallback is a warning. An ugly one, for sure, but still a warning and the automatic conversion to string is the actual fix for this mistake. Which is also why I didn’t discover this issue myself.

    So I was wondering if this fix alone will help you, or if there is another problem somewhere? Did you notice another error, for example in the Chrome Dev Tools console? (I understand you are a developer, this is why I’m asking directly).

    Regards,
    Philippe

    Plugin Author resoc

    (@resoc)

    Hi Robin,

    Plugin v0.0.12 was published a minute ago. It includes the fix you suggested in your second message. Would you be so kind to tell me if this is fixing the issue on your side?

    Regards,
    Philippe

    Plugin Author resoc

    (@resoc)

    Hi Robin,

    I am closing this issue. Don’t hesitate to reopen it if the issue is still present.

    Regards,
    Philippe

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when clicking “select image for overlay”’ is closed to new replies.