My website is throwing this error. PHP Fatal error: Call to undefined function _system_rebuild_theme_data()
I created a custom module for the plupload file uploader.
When pressing the upload button, it calls upload.php which resides in sites/all/modules/plupload_file_uploader with the rest of the files.. Within that script I run this code:
require_once DRUPAL_ROOT . '\includes\bootstrap.inc';
Everything works good if this is commented out:
When this isn't commented, the above error is thrown. It is failing in themes.inc when calling
list_themes and it makes it to here.
// Scan the installation when the database should not be read.
$themes = _system_rebuild_theme_data();
This function is available in the system.module.
We are also using a custom theme. that resides in a folder sites/all/themes/custom/rms
I had this exact same functionality working in a different website on a different web server. Now its being developed locally using Tomcat...and I can't figure out the problem. The purpose of calling this code is to use the drupal session parameters.
It seems like themes.inc cannot see system.module - Is that possible?
Does anyone have any other suggestions? This most likely is not a drupal code problem...but any suggestions will be appreciated.