• Resolved aidanlane

    (@aidanlane)


    Hi,

    We were having issues with this plugin on one of our worker instances (running PHP 5.5.20) that generates ePubs.

    Initially we were getting “GDE Error: Unable to load profile settings” when using the gview shortcode. We fixed this by inserting global $healthy; before $healthy = gde_debug_tables(); in gviewer.php

    This got us to “GDE Error: Unsupported File Type (docx)” (and like for xlsx, pdf, etc).
    So we added global $gde_ver, $gde_db_ver; and global $pdata, $gdeoptions, $gdetypes; in the relevant places in gviewer.php.

    It now works perfectly on all instances. This makes sense, as most of these variables are referred to as globals in other parts of the code base.

    Btw, another issue we had was the “protocol-agnostic” code, which is usually perfectly good… until you use the generated code in an ePub.

    Anyway, I hope this helps someone 🙂

    https://wordpress.org/plugins/google-document-embedder/

Viewing 1 replies (of 1 total)
  • Plugin Contributor danlester

    (@danlester)

    Thank you for your comments. Hopefully they will help others, and can also be incorporated into development of the core plugin too.

    Dan

Viewing 1 replies (of 1 total)
  • The topic ‘Global Variables Issue / GDE Error: Unable to load profile settings’ is closed to new replies.