Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Standalone : Get_option missing? - Solved https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4457 |
Page 1 of 1 |
Author: | marcverkade [ 27. Oct 2017, 23:14 ] |
Post subject: | Standalone : Get_option missing? - Solved |
The website encountered an unexpected error. Please try again later. Error: Call to undefined function get_option() in include() (line 41 of plugins\advanced-iframe\includes\advanced-iframe-main-read-config.php). include() (Line: 301) advancediFrame->do_iframe_script(NULL, NULL) (Line: 151) include('C:\Websites\Drupal\plugins\advanced-iframe\standalone\standalone-advanced-iframe.php') (Line: 60) require('C:\Websites\Drupal\plugins\advanced-iframe\standalone\standalone-example.php') (Line: 43) bartik_preprocess_page(Array, 'page', Array) (Line: 287) Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 437) Any clue why it cannot find get_option()? Regards, Marc |
Author: | marcverkade [ 28. Oct 2017, 06:55 ] |
Post subject: | Re: Standalone : Get_option missing? |
Solved - The following variables were not global! When added to 'standalone-advanced-iframe.php' it started doing something... See next post for the rest of the story... global $iframeStandaloneDefaultOptions; global $aip_standalone; global $iframeStandaloneOptions; global $domain; global $html; |
Author: | TinyWebGallery [ 29. Oct 2017, 17:27 ] |
Post subject: | Re: Standalone : Get_option missing? - Solved |
But the global stuff is only needed because of the lazy load of drupal? Because I only use global variables when really needed. Best, Michael |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |