Installation blank screen with Ubercart Package

Posts: 6
Joined: 01/25/2008

I tried doing a fresh install with the Ubercart package downloaded today. I selected the second installation option (Ubercart) and entered the site and database information. After this it comes up with a blank white screen.

I can see tables were created in the mysql database. However, www.mydomain.com comes up blank. The files are installed in the domain root.

It is a virtual dedicated server.
PHP 4.3.9 Max memory set to 32M
MySQL 4.1.20

Any ideas?

Thanks, Russ

Posts: 1217
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

One place to start is to put this at the top of your index.php file in the web root:

<?php
error_reporting
(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
?>

That'll show you any fatal errors in PHP. When Drupal encounters one of those it shows a blank page, unless you put that code in (or set it up in php.ini)... paste back here what the error message is that you receive, if any Smiling

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 6
Joined: 01/25/2008

Thank you for the idea. I put it in, and got the following message:

Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/bob/public_html/sites/all/modules/workflow_ng/workflow_ng/workflow_ng.module on line 625

Posts: 4695
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

That sort of error generally happens when a file is not completely loaded. It could be that PHP tried to parse/execute that code without it being fully uploaded or something, although it may just be that (unfortunately) installing all the modules at once through the Uberinstaller takes more than 32M or RAM. Not entirely sure what the problem would be here... there's nothing recognizable on that line in Workflow-ng to debug.

Posts: 332
Joined: 08/07/2007
Administrator

I'm guessing Ryan's right with the limited memory issue. Try the Drupal option on the install page, then enable the Ubercart modules one after another. If you starting hitting white screens after enabling a certain amount of modules that would be a pretty good indication you're hitting PHP's memory limit.

--

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

Posts: 6
Joined: 01/25/2008

Those are good ideas. I'll try them.

I'm starting to wonder if some sort of caching is affecting this. I had installed Ubercart package to the root of the public_html directory. Now, I moved all of these files to the uc directory and put just a simple index.html file in instead. But putting www.mydomain.com in the browser gives the same error as above.

Do you know if there is a cache that needs to be cleared? Thank you for your help!

Posts: 6
Joined: 01/25/2008

I am still having troubles with this. Today I downloaded the latest Ubercart Package, started with an empty db and install directory, and selected the Drupal install (not the Ubercart option.) I enabled token and store with no problem. I saw that the other Ubercart core modules required Workflow-ng so I checked the four Workflow-ng modules. After hitting Save Configuration, it comes back with a blank screen and the following error message.

Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/buser/public_html/uc/sites/all/modules/workflow_ng/states/states_admin.inc on line 472

I tried hitting the back button and unselecting the workflow-ng, but same error appears. So it seems stuck again.

It is a virtual dedicated server
PHP 4.3.9 now set to 128M max memory.
MySQL 4.1.20

Any ideas are much appreciated. Thank you.

Posts: 4695
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Solution: Just don't install the Workflow State Machine API module. It's not needed.

Posts: 6
Joined: 01/25/2008

Much thanks. I started with a fresh installation and enabled just token and workflow-ng (nothing else). It gives error:

Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /home/buser/public_html/uc/sites/all/modules/workflow_ng/workflow_ng/workflow_ng.module on line 625

After searching for this error message I saw a different module where they recommended upgrading to PHP 5. Do you think that is necessary here? (I don't want to mess with too much on my virtual dedicated server if I don't have to.)

Thank you.

Posts: 4695
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

I don't know man.. this sounds like a much deeper issue with your host, and it could be your PHP version or even that you're not able to up the memory limit except through php.ini (which you may not have access to). There's not much else I can advise, as this shouldn't be happening on just two modules.

Posts: 332
Joined: 08/07/2007
Administrator

The line in question in workflow_ng.module on 625 is the following:

<?php
 
foreach ($new_arguments as $name => &$data) {
  ...
?>

There shouldn't be an issue with that syntax in PHP 5. After just installing Drupal only, goto admin/logs/status, what version of PHP is being reported on that page?

--

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

Posts: 6
Joined: 01/25/2008

Thanks for looking at this. I checked the status page and PHP is 4.3.9 and MySQL is 4.1.20.

I had seen on the Uberinstaller page that the requirements are MySQL (4.1 or 5.0) and PHP (4.3.3 or greater), but it is sounding like it needs PHP 5. Is that right?

Thank you.

Posts: 332
Joined: 08/07/2007
Administrator

It's now PHP 4.3.5 (I forgot to update it when it was updated for Drupal) that's the minimum requirement for Drupal/Ubercart. While PHP 4 is the minimum requirement, PHP 5 is what's recommended for Ubercart. Our testing and production servers are in a PHP 5 environment, so any problems that come up in PHP 4 won't show up immediately to us. In this case, Workflow-NG appears to be incompatible with PHP 4.3.9 (you might want to tell the maintainer of Workflow-NG about this), upgrading to PHP 5 should resolve this problem.

--

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

Posts: 48
Joined: 01/31/2008

I've installed beta5 (not the package) and got the blank screen again. Did this before for beta 4 and reinstalled everything and it worked. However with this install, I have other modules installed where I don't want to have to reinstall everything.

When I delete the Ubercart folder, it will work. Once I put it back, the whole site gives this error:
Fatal error: Call to undefined function uc_product_node_info() in /var/www/vhosts/domain.com/httpdocs/modules/ubercart/uc_repeater/uc_repeater.module

I don't know if I did the sequence right this time. Last time I had to install a few parts of the module at a time.

Tried the following memory solution and memory is at 50M and blank page is still there.
http://www.ubercart.org/forum/support/2603/cannot_install_ubercart

Posts: 48
Joined: 01/31/2008

Ok, I deleted everything that had Ubercart from db > system. Then installed Tables API first, then all the core, then all extra, then core optional and this seem to have worked.

Posts: 4695
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

There should be a fix for the uc_product_node_info() bug in core now. We couldn't really isolate what was causing it, so Lyle smashed it all to bits with what we hope is a comprehensive fix. Smiling