In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
855 [In-Portal CMS] Install / Upgrages bug report always 2010-09-05 03:43 2010-11-30 12:48
bilalahmed  
alex  
normal  
closed 5.1.0  
fixed  
 
none 5.1.1-B1  
http://groups.google.com/group/in-portal-bugs/browse_thread/thread/7656e497e586d2fd
0
0000855: During installation after "Database Configuration" step, the page goes blank
When we start installation of In-Portal using the URL http://localhost/in-portal/core/install.php the first page that appears is "Database Configuration", which is step 2 of installation. After entering the information, when we click on "Continue" button, the page goes blank. Debug mode produces no output. The installation platform is WAMP Server 2.0.
This issue has been tracked down and the problem is the code "while (($entry = $folder->read()) !== false) {" in the file modules_helper.php, which comes near line 220 (Please check couple of lines above and below). The script quits without informing when a call is made to "$folder->read()", The reason is the it is trying to enumerate the directory named "modules", which does not exist after the default installation. This may be some internal exception or something else but the issue can be easily resolved by creating the directory named "modules" in the root folder.
patch installation_fix_without_modules.patch (688) 2010-09-07 15:01
http://tracker.in-portal.org/file_download.php?file_id=748&type=bug
Issue History
2010-11-30 12:48 Dmitry Note Added: 0003043
2010-11-30 12:48 Dmitry Status resolved => closed
2010-09-08 08:54 alex Note Added: 0002790
2010-09-08 08:54 alex Status reviewed and tested => resolved
2010-09-08 08:54 alex Fixed in Version => 5.1.1-B1
2010-09-08 08:54 alex Resolution open => fixed
2010-09-08 08:54 alex Assigned To !COMMUNITY => alex
2010-09-08 08:54 alex Changeset attached 5.1.x r13920
2010-09-07 15:16 Dmitry Note Added: 0002789
2010-09-07 15:16 Dmitry Status needs testing => reviewed and tested
2010-09-07 15:03 alex Assigned To bilalahmed => !COMMUNITY
2010-09-07 15:03 alex Developer => alex
2010-09-07 15:03 alex Status needs feedback => needs testing
2010-09-07 15:03 alex Target Version => 5.1.1
2010-09-07 15:03 alex Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/7656e497e586d2fd
2010-09-07 15:01 alex File Added: installation_fix_without_modules.patch
2010-09-05 21:22 Dmitry Note Added: 0002771
2010-09-05 21:22 Dmitry Assigned To => bilalahmed
2010-09-05 21:22 Dmitry Status active => needs feedback
2010-09-05 03:43 bilalahmed New Issue

Notes
(0002771)
Dmitry   
2010-09-05 21:22   
Thank you for well documenting the issue you are experiencing!

After looking into this I can say that modules/ folder should always present in default (or any) installations even if there are no modules installed.

As you probably noticed we are using built-in PHP dir/read mechanism here ( http://php.net/manual/en/class.dir.php ) which means that there might be some issues with PHP Windows version when folder doesn't exists and you trying to refer to it via object notation.

Please remove modules folder from your file system at first and then try to add IF checking if folder before "while" and closing it after $folder->close();

if (is_dir($folder)) {
...current code inside...
}

Please post your results here.
(0002789)
Dmitry   
2010-09-07 15:16   
Tested good, please commit to 5.1.1
(0002790)
alex   
2010-09-08 08:54   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000855: During installation after "Database Configuration" step, the page goes blank
(0003043)
Dmitry   
2010-11-30 12:48   
Closing released 5.1.1 task.