Project / Support Center
Welcome, Guest. Please login or register. August 13, 2022, 01:20: PM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Open Source Topics  |  SugarCRM  |  Topic: Fatal error - scandir() index.php line 563 - SugarCRM 4.5 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: Fatal error - scandir() index.php line 563 - SugarCRM 4.5  (Read 13209 times)
admin
Guest
« on: September 20, 2006, 04:41: PM »

This appears to be caused by this module

   SugarCubed: Configurator Upgrades   Module   4.5.0rc1

And can lock you out of the system.

What we did was open the index.php files and deleted the following code :

/*
* Pre Page Render stubs by kbrill (ken.brill@gmail.com)
* 08-05-2006
*
* Allows developers to add PHP programs that run with every page
* It includes an entire directory of PHP files so that one developer
* doesn't have to worry about what another did.
*/
$path_parts = pathinfo($_SERVER["SCRIPT_FILENAME"]);
$path_name=$path_parts['dirname']."/";
$pre_render_directory = $path_name."include/pre_render/";
if(!is_dir($pre_render_directory)) {
   mkdir($pre_render_directory);
}
$include_files = scandir($pre_render_directory);
foreach ($include_files as $include_filename) {
   if($include_filename<>"." && $include_filename<>"..") {
      include($pre_render_directory.$include_filename);
   }
}
/*
*
* END PRE-RENDER PHP FILES
*
*/


Then refreashed the page went to the admin area and uninstalled the:

 SugarCubed: Configurator Upgrades   Module   4.5.0rc1

We then went back to the index.php file and restored the above code and saved the page. Everything appears to be worling fine now.
« Last Edit: September 20, 2006, 04:43: PM by Web Global Net Support » Report to moderator   Logged
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Open Source Topics  |  SugarCRM  |  Topic: Fatal error - scandir() index.php line 563 - SugarCRM 4.5 « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!