Advertisement:

Author Topic: Step 3 of installation is blank  (Read 2927 times)

shane

  • Newbie
  • *
  • Posts: 4
Step 3 of installation is blank
« on: October 24, 2010, 02:30:50 pm »
After entering the database information (which I'm positive is correct) and pressing "next" the page is totally blank (oc-installer/index.php?step=3), if I view the page source there is nothing there. If I access the page directly (oc-installer/index.php?step=3) it shows. It's only when I post to it from oc-installer/index.php?step=2.

Requirements are all met according to the first step of the installation:
 
Code: [Select]
All right! All the requirements have met:

PHP version >= 5.x
MySQL extension for PHP installed
GD extension for PHP installed
Folder "oc-content/uploads" exists
Folder "oc-content/uploads" is writable
Root direcotry is writable

No idea why, nothing in the Apache error logs. Running Apache 2.2.16 with PHP 5.3.3.

Any ideas?

ljhelbo

  • Newbie
  • *
  • Posts: 20
Re: Step 3 of installation is blank
« Reply #1 on: October 25, 2010, 11:04:24 am »
Could it be that you are working with version 1.0 ?

This error was removed in version 1.01

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: Step 3 of installation is blank
« Reply #2 on: October 25, 2010, 12:24:05 pm »
As ljhelbo says, which version are you using?

Today we're rolling out another version, stay tuned to blog: http://osclass.org/blog Try this one and tell us if it works well to you.

shane

  • Newbie
  • *
  • Posts: 4
Re: Step 3 of installation is blank
« Reply #3 on: October 25, 2010, 02:29:35 pm »
Sorry, I forgot to mention that. I've tried 1.0.1 and I've tried the latest version from svn (3 days ago).

shane

  • Newbie
  • *
  • Posts: 4
Re: Step 3 of installation is blank
« Reply #4 on: October 25, 2010, 05:31:33 pm »
After quite a bit of poking around I've found the issue. There were absolutely no errors about this anywhere so it took a bit of time to work it out.

OSClass actually uses the MySQLi PHP extension. This was not installed on my server. I have since installed it and OSClass has installed successfully.

It would be good for something to check this on the first step of the installation, perhaps a change as simple as this:

http://code.google.com/p/osclass/source/browse/trunk/webapp/oc-installer/index.php?r=727#300

Quote
   $checks = array(
            'PHP version >= 5.x' => version_compare(PHP_VERSION, '5.0.0', '>='),
            'MySQL extension for PHP installed' => extension_loaded('mysql'),
            'MySQLi extension for PHP installed' => extension_loaded('mysqli'),
            'GD extension for PHP installed' => extension_loaded('gd'),
            'Folder "oc-content/uploads" exists' => file_exists('../oc-content/uploads'),
            'Folder "oc-content/uploads" is writable' => is_writable('../oc-content/uploads'),
    );

http://code.google.com/p/osclass/source/browse/trunk/webapp/oc-includes/osclass/db.php?r=727#89

Quote
/**
 * Check PHP requirements needed to run the functions on this file.
 */
function osc_dbCheckRequirements() {
        if(!extension_loaded('mysql')) {
                throw new DBException(__('The required mysql extension is not loaded'), 0);

        if(!extension_loaded('mysqli')) {
                throw new DBException(__('The required mysqli extension is not loaded'), 0);
        }
« Last Edit: October 25, 2010, 05:35:15 pm by shane »

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: Step 3 of installation is blank
« Reply #5 on: October 25, 2010, 06:01:46 pm »
wow, great work! I didn't notice it. It's changed in the svn trunk: http://code.google.com/p/osclass/source/detail?r=728

Thanks a lot!

shane

  • Newbie
  • *
  • Posts: 4
Re: Step 3 of installation is blank
« Reply #6 on: October 25, 2010, 06:26:39 pm »
Thanks a lot!

No problem. Glad I could help :).