Forums / Installing on a Linux/Unix Server / Zancart not showing after server rebuild

Zancart not showing after server rebuild

Started by tomphillipspcs on 30 Jul 2012, 6:54 AM · Views: 2,088

Results 1 to 10 of 10
30 Jul 2012, 6:54 AM
#1
tomphillipspcs avatar

tomphillipspcs

New Zenner

Join Date:
Jul 2012
Posts:
11
Plugin Contributions:
0

Zancart not showing after server rebuild

https://www.summitreks.com/shop is not showing after a sever rebuild. How do I start to find out why?

.htaccess is in place (in /shop) as before:

BOF SSU

Options +FollowSymLinks -MultiViews

RewriteEngine On

RewriteBase /~streks/shop/

Deny access from .htaccess

RewriteRule ^.htaccess$ - [F]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA]

EOF SSU

30 Jul 2012, 1:30 PM
#3
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Zancart not showing after server rebuild

tomphillipspcs:

www.summitreks.com/shop is not showing after a sever rebuild. How do I start to find out why?

The server is now running PHP 5.3.

Your version of zencart is not compatible with this and needs upgrading.

http://www.zen-cart.com/showthread.php?140960-PHP-5-3-Support-for-v1-3-8-a

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

9 Aug 2012, 2:25 PM
#4
tomphillipspcs avatar

tomphillipspcs

New Zenner

Join Date:
Jul 2012
Posts:
11
Plugin Contributions:
0

Re: Zancart not showing after server rebuild

RodG:

The server is now running PHP 5.3.

Your version of zencart is not compatible with this and needs upgrading.

http://www.zen-cart.com/showthread.php?140960-PHP-5-3-Support-for-v1-3-8-a

Cheers
Rod

I have tried this - taking a backup copy of each file and uploading the new versions

I still get an error - but a different one

http://www.summitreks.com/shop/xindex.php

shows

Fatal error: Call to undefined function zen_db_input() in /home/streks/public_html/shop/includes/functions/sessions.php on line 38

and error log shows

[09-Aug-2012 13:53:06 UTC] PHP Fatal error: Call to undefined function zen_db_input() in /home/streks/public_html/shop/includes/functions/sessions.php on line 38
[09-Aug-2012 13:55:49 UTC] PHP Fatal error: Call to undefined function zen_db_input() in /home/streks/public_html/shop/includes/functions/sessions.php on line 38
[09-Aug-2012 13:55:52 UTC] PHP Fatal error: Call to undefined function zen_db_input() in /home/streks/public_html/shop/includes/functions/sessions.php on line 38
[09-Aug-2012 13:55:55 UTC] PHP Fatal error: Call to undefined function zen_db_input() in /home/streks/public_html/shop/includes/functions/sessions.php on line 38
[09-Aug-2012 13:56:21 UTC] PHP Fatal error: Multiple access type modifiers are not allowed in /home/streks/public_html/shop/includes/classes/ssu/cores/parser.php on line 17
[09-Aug-2012 13:57:12 UTC] PHP Fatal error: Multiple access type modifiers are not allowed in /home/streks/public_html/shop/includes/classes/ssu/cores/parser.php on line 17
[09-Aug-2012 13:58:43 UTC] PHP Fatal error: Multiple access type modifiers are not allowed in /home/streks/public_html/shop/includes/classes/ssu/cores/parser.php on line 17
[09-Aug-2012 14:04:19 UTC] PHP Fatal error: Multiple access type modifiers are not allowed in /home/streks/public_html/shop/includes/classes/ssu/cores/parser.php on line 17
[09-Aug-2012 14:08:06 UTC] PHP Fatal error: Multiple access type modifiers are not allowed in /home/streks/public_html/shop/includes/classes/ssu/cores/parser.php on line 17

I did also notice that there was not a file called - /includes/functions/functions_general.php

there was /includes/functions/general.php - so I changed the new file name to that and over wrote it - is that correct?

Any ideas how to procede from here?

9 Aug 2012, 2:31 PM
#5
tomphillipspcs avatar

tomphillipspcs

New Zenner

Join Date:
Jul 2012
Posts:
11
Plugin Contributions:
0

Re: Zancart not showing after server rebuild

And If I revert back to the old /includes/functions/general.php version I get this error:

Fatal error: Cannot redeclare date_diff() in /home/streks/public_html/shop/includes/functions/functions_general.php on line 1476

9 Aug 2012, 8:02 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Zancart not showing after server rebuild

tomphillipspcs:

Fatal error: Call to undefined function zen_db_input() in /home/streks/public_html/shop/includes/functions/sessions.php on line 38That means you're missing the code from the file where the zen_db_input function is declared.
tomphillipspcs:

Fatal error: Multiple access type modifiers are not allowed in /home/streks/public_html/shop/includes/classes/ssu/cores/parser.php on line 17That means you've got code for a module called "ssu" installed, but it isn't working correctly. Since it's not part of core Zen Cart code, might be wise to turn that thing off or remove the code for it, until you get the store running normally.
tomphillipspcs:

I did also notice that there was not a file called - /includes/functions/functions_general.phpUm, there should be. You'll need to put that file on your server or things won't work properly.
tomphillipspcs:

there was /includes/functions/general.php - so I changed the new file name to that and over wrote it - is that correct?No, that's not correct.

There should be the following files, both with DIFFERENT content, and different filenames. Don't mix them up, and don't exclude them from the folders they belong in:
/includes/functions/functions_general.php
/admin/includes/functions/general.php

And you really shouldn't be using v1.3.8 anymore. It's both obsolete and has security problems.

.
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.

10 Aug 2012, 9:01 PM
#7
tomphillipspcs avatar

tomphillipspcs

New Zenner

Join Date:
Jul 2012
Posts:
11
Plugin Contributions:
0

Re: Zancart not showing after server rebuild

DrByte:

That means you've got code for a module called "ssu" installed, but it isn't working correctly. Since it's not part of core Zen Cart code, might be wise to turn that thing off or remove the code for it, until you get the store running normally..

Thanks - just getting this error now

Fatal error: Multiple access type modifiers are not allowed in /home/streks/public_html/shop/includes/classes/ssu/cores/parser.php on line 17

how would I remove the module called "ssu" ?

10 Aug 2012, 9:23 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: Zancart not showing after server rebuild

This is how I'd do it, since I don't know the answer off the top of my head either:

  1. Download the SSU module for the version of Zen Cart you're using
  2. Unzip it
  3. Look at all the files included in it, and those are the files to remove from your server.
  4. Keep in mind that some of those files might be replacements for original Zen Cart versions of those files, and thus you'll need to replace those files too, using original Zen Cart files for the version of Zen Cart you're using.

But you're getting into delicate territory. Tread carefully.

Remember, this is a good reason to keep the site software up to date regularly ;)

.
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.

10 Aug 2012, 9:26 PM
#9
tomphillipspcs avatar

tomphillipspcs

New Zenner

Join Date:
Jul 2012
Posts:
11
Plugin Contributions:
0

Re: Zancart not showing after server rebuild

getting there now - I editing the line of code showing the error -

now I get this warning error

http://www.summitreks.com/shop/xindex.php

Warning: I am able to write to the configuration file: /home/streks/public_html/shop/includes/configure.php. This is a potential security risk - please set the right user permissions on this file (read-only, CHMOD 644 or 444 are typical). You may need to use your webhost control panel/file-manager to change the permissions effectively. Contact your webhost for assistance.

even a test chmod to 777 doesn't get rid of this warning?

10 Aug 2012, 9:36 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: Zancart not showing after server rebuild

777 is writable. Lower numbers like 644 are more restrictive.

.
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.