Global Variables Issue / GDE Error: Unable to load profile settings
-
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.phpThis got us to “GDE Error: Unsupported File Type (docx)” (and like for xlsx, pdf, etc).
So we addedglobal $gde_ver, $gde_db_ver;
andglobal $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 ??
- The topic ‘Global Variables Issue / GDE Error: Unable to load profile settings’ is closed to new replies.