If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading from 1.2 to 1.3.x / Blank page on DB up grade 1.2.7 -> 1.3.8

Blank page on DB up grade 1.2.7 -> 1.3.8

Locked

Started by jrlooney on 15 Feb 2008, 8:01 PM · Views: 5,918

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
15 Feb 2008, 8:01 PM
#1
jrlooney avatar

jrlooney

New Zenner

Join Date:
Feb 2008
Posts:
16
Plugin Contributions:
0

Blank page on DB up grade 1.2.7 -> 1.3.8

Hello,

I am trying to upgrade from 1.2.7 to 1.3.8. I ran the install script, did Database Upgrade. It recognizes I want to go from 1.2.7 to 1.3.8. I click Upgrade Database Now and I get a blank screen.

I read on here how some people did incremental upgrades at that stage (1.2.7 to 1.3.0, then 1.3.0 to 1.3.1, etc.) Well I just tried that too and still got blank page.

Any help would be appreciated.

15 Feb 2008, 8:06 PM
#2
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

15 Feb 2008, 8:24 PM
#3
jrlooney avatar

jrlooney

New Zenner

Join Date:
Feb 2008
Posts:
16
Plugin Contributions:
0

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

re-uploaded everything.
I have not changed any files.
Still get blank page when attempting 1.2.7 --> 1.3.0

16 Feb 2008, 12:45 AM
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

And did you turn on the debug?

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

18 Feb 2008, 3:47 PM
#5
jrlooney avatar

jrlooney

New Zenner

Join Date:
Feb 2008
Posts:
16
Plugin Contributions:
0

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

Ok, added the debug utility to includes/extra_configures/ chmoded it to 777. Ran the DB Upgrade script again, but no log file was written to the cache folder (like the Debug Util. instructions said there would be - permissions are 777 on cache folder right now). The only log file in the cache folder is the install log.

The install log reports (I removed the host name):


Feb 18 2008 9:34 -- inspect
System Inspection Results:

NA: Webserver => Apache/1.3.33 (Darwin) PHP/5.2.4 mod_ssl/2.8.24 OpenSSL/0.9.7i
NA: HTTP Host => www.***.org
NA: Path_Translated => /Users/nhd/www/cart_new/zc_install/index.php
NA: Real Path => /Users/nhd/www/cart_new
NA: Server Free Disk Space => 7.01 GB
NA: PHP O/S => Darwin
NA: PHP API Mode => apache
NA: PHP Max Execution Time per page => 180
OK: Register Globals => OFF
OK: MySQL Support => ON
WARN: MySQL Version => 5.0.45-log
OK: PHP Version => 5.2.4
OK: PHP Safe Mode => OFF
OK: PHP Sessions Support => ON
OK: PHP Session.AutoStart => OFF
OK: PHP session.use_trans_sid => OFF
OK: Current SQL Cache Folder => /Users/nhd/www/cart_new/cache-->Writeable
OK: Suggested SQL Cache Folder => /Users/nhd/www/cart_new/cache
OK: PHP magic_quotes_runtime setting => OFF
OK: PHP magic_quotes_sybase setting => OFF
OK: PHP GD Support => ON
OK: GD Version => GD bundled (2.0.34 compatible)
OK: PHP ZLIB Compression Support => ON
OK: PHP OpenSSL Support => ON
OK: PHP cURL Support => ON
OK: CURL NON-SSL Capability => Okay
OK: CURL SSL Capability => Okay
OK: PHP Upload Support => ON upload_max_filesize=20M; post_max_size=8M
OK: PHP Upload TMP dir =>
NA: PHP include_path => .:/usr/local/php5/lib/php
NA: PHP SMTP destination => localhost
NA: PHP sendmail path => /usr/sbin/sendmail -t -r [email protected]
NA: PHP sendmail 'from' =>
OK: PHP open_basedir restrictions =>
OK: PHP Output Buffering (gzip) => ON
OK: PHP FTP Support => ON
OK: PHP XML Support => ON
OK: PHP Session.Save_Path => /Users/nhd/www/cart_new/cache-->Writeable
OK: includes/configure.php => Writeable
OK: admin/includes/configure.php => Writeable
OK: cache => OK 777 read/write/execute
OK: images => OK 777 read/write/execute (INCLUDE SUBDIRECTORIES TOO)
OK: includes/languages/english/html_includes => OK 777 read/write (INCLUDE SUBDIRECTORIES TOO)
OK: media => OK 777 read/write/execute
OK: pub => OK 777 read/write/execute
OK: admin/backups => OK 777 read/write
OK: admin/images/graphs => OK 777 read/write/execute
PHP Extensions compiled: zip, xmlwriter, libxml, xmlrpc, dom, xmlreader, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, pcre, SimpleXML, SPL, PDO, sockets, soap, snmp, SQLite, shmop, standard, Reflection, posix, pdo_sqlite, OpenBase Module, memcache, mbstring, ldap, imap, iconv, hash, gd, ftp, filter, exif, dbase, date, ctype, calendar, bz2, bcmath, zlib, openssl, apache, curl, fbsql, gettext, json, mcrypt, mhash, ming, mssql, mysql, mysqli, odbc, pdf, pdo_mysql, pdo_pgsql, pgsql, xsl

18 Feb 2008, 7:33 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

The installer doesn't use the same folder auto-load pieces as the main storefront. That's why adding that extra file isn't helping you during install/upgrade activity.

Edit your /zc_install/includes/application_top.php file.
Find this section:```
/**

  • set the level of error reporting
    */
    if (defined('STRICT_ERROR_REPORTING') && STRICT_ERROR_REPORTING == true) {
    @ini_set('display_errors', '1');
    error_reporting(E_ALL ^E_NOTICE);
    } else {
    error_reporting(0);
    }
    add this BELOW it:
    @ini_set('log_errors', 1);
    @ini_set('log_errors_max_len', 0);
    @ini_set('display_errors', 0);
    @ini_set('error_log', DEBUG_LOG_FOLDER);
    @ini_set('error_reporting', E_ALL ^E_NOTICE );

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Feb 2008, 8:09 PM
#7
jrlooney avatar

jrlooney

New Zenner

Join Date:
Feb 2008
Posts:
16
Plugin Contributions:
0

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

Thank you for helping. I did as you said, but still no log file in /cache. Only ones I see are sess_ and zcInstallLog_ files.

from /zc_install/includes/application_top.php:

if (defined('STRICT_ERROR_REPORTING') && STRICT_ERROR_REPORTING == true) {
  @ini_set('display_errors', '1');
  error_reporting(E_ALL ^E_NOTICE);
} else {
  error_reporting(0);
}
    @ini_set('log_errors', 1);
    @ini_set('log_errors_max_len', 0);
    @ini_set('display_errors', 0);
    @ini_set('error_log', DEBUG_LOG_FOLDER);
    @ini_set('error_reporting', E_ALL ^E_NOTICE );
18 Feb 2008, 8:21 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

When exactly are you getting the "blank page"?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Feb 2008, 8:35 PM
#9
jrlooney avatar

jrlooney

New Zenner

Join Date:
Feb 2008
Posts:
16
Plugin Contributions:
0

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

At the Database Upgrade page. WHen I get to that page it says:

Database Information -- Upgrade Sniffer predicts: upgrade v1.2.7 to v1.3.0
Database Type = mysql
Database Host = localhost
Database Name = acuweb_nhdCLONE
Database Username = acuweb_nhdcart
Database Table-Prefix = zen_

Then it has all of these checked:
Upgrade DB from 1.2.7 to 1.3.0
Upgrade DB from 1.3.0 to 1.3.0.1
Upgrade DB from 1.3.0.1 to 1.3.0.2
Upgrade DB from 1.3.0.2 to 1.3.5
Upgrade DB from 1.3.5 to 1.3.6
Upgrade DB from 1.3.6 to 1.3.7
Upgrade DB from 1.3.7 to 1.3.8

So the first time I left those all checked, entered the store admin login and clicked Update Database Now. It gave me the blank page.

Then I read a post that said just do the upgrade incrementally. So I restored the db from a copy, and did the same above except I ONLY left "Upgrade DB from 1.2.7 to 1.3.0" checked. Clicked Update Database Now and got the blank page.

18 Feb 2008, 8:36 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

jrlooney:

@ini_set('error_log', DEBUG_LOG_FOLDER);Oops ... change that line by adding a filename, like this:

    @ini_set('error_log', DEBUG_LOG_FOLDER[B] . '/php_errors.log'[/B]);

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Feb 2008, 8:39 PM
#11
jrlooney avatar

jrlooney

New Zenner

Join Date:
Feb 2008
Posts:
16
Plugin Contributions:
0

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

ah, ok that worked. here is the log entry:

[18-Feb-2008 14:31:33] PHP Fatal error: Call to a member function setError() on a non-object in /Users/nhd/www/cart_new/zc_install/includes/classes/installer.php on line 648

18 Feb 2008, 8:48 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

Well, for it to say setError is not defined seems very odd, since it's defined on line 211.

However, the reason you're even hitting that situation is because this test is failing:```
if ($admin_name != $result->fields['admin_name']) {
$this->setError(ERROR_TEXT_ADMIN_PWD_REQUIRED, ERROR_CODE_ADMIN_PWD_REQUIRED, true);
}


So ... perhaps you've entered the wrong admin username?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Feb 2008, 8:55 PM
#13
jrlooney avatar

jrlooney

New Zenner

Join Date:
Feb 2008
Posts:
16
Plugin Contributions:
0

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

Hrm. Well, it's the exact one I used just minutes before starting this process. And now that the database is not up to date, I can't log into the admin to test it. :)

I can still see the record in zen_admin table. What would happen if I wiped the pwd from the table? would it let me proceed with the upgrade with no pwd?

Edit - just tried w/o the pwd and it said a valid pwd required. I just looked up the value from the live database, and tested it and it works fine on the live database (same value I am trying to use here). Think I need to rebuild the db from the live db again?

18 Feb 2008, 8:59 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

This is dangerous ... but you can try it:

**** dangerous code edit removed ****

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Feb 2008, 9:05 PM
#15
jrlooney avatar

jrlooney

New Zenner

Join Date:
Feb 2008
Posts:
16
Plugin Contributions:
0

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

hehe guess i shoulda thought of that.

ok that worked to get me from 1.2.7 to 1.3.0. When I tried to go from 1.3.0. to 1.3.1, I got this:

ATTENTION: Problems Found

* NOTE: Skipped upgrade statements: 1
  See details at bottom of page for your inspection.
  (Details also logged in the "upgrade_exceptions" table.)

and at the bottom of the page were a whole lot of these:

SKIPPED: Cannot insert configuration_group_title "EZ-Pages Settings" because it already exists

:(

18 Feb 2008, 9:17 PM
#16
jrlooney avatar

jrlooney

New Zenner

Join Date:
Feb 2008
Posts:
16
Plugin Contributions:
0

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

nvm that post. I checked the upgrade table and read that the one sql statement could not run because the record already existed. So I continued. I got all the way to the end and on the last upgrade I got these two, which sound more serious:

SKIPPED: Cannot ALTER or INSERT/REPLACE into table paypal_testing because it does not exist. CHECK PREFIXES!

SKIPPED: Cannot ALTER or INSERT/REPLACE into table linkpoint_api because it does not exist. CHECK PREFIXES!

Are those common?

18 Feb 2008, 10:27 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

jrlooney:

nvm that post. I checked the upgrade table and read that the one sql statement could not run because the record already existed. So I continued. I got all the way to the end and on the last upgrade I got these two, which sound more serious:

SKIPPED: Cannot ALTER or INSERT/REPLACE into table paypal_testing because it does not exist. CHECK PREFIXES!

SKIPPED: Cannot ALTER or INSERT/REPLACE into table linkpoint_api because it does not exist. CHECK PREFIXES!

Are those common?

Those are common. The paypal_testing table is for internal developer use ... we'll be removing it at some point.
The linkpoint_api table is only present if you're using the linkpoint payment module.
You can ignore those messages.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Feb 2008, 1:21 PM
#18
jrlooney avatar

jrlooney

New Zenner

Join Date:
Feb 2008
Posts:
16
Plugin Contributions:
0

Re: Blank page on DB up grade 1.2.7 -> 1.3.8

Excellent. I believe I am done. Thanks for all the help.

:thumbsup: