Results 1 to 9 of 9
  1. #1
    Join Date
    May 2009
    Posts
    7
    Plugin Contributions
    0

    Default Upgrading server within same host

    Hello all! My web host was getting blacklisted on email servers, so they transferred my site and email to another host within their system. So, for example, if my host name was: brandy.hostgatewm.com, and they transferred my site, email etc. to mark.hostgatewm.com. They did this quite suddenly and when it happened my zen cart was broken. Nothing showed up. When I tried to get into the admin there was a page of error messages. I was running zen cart 1.3.8.

    My server said that maybe it was because the new server is running a newer version of PHP-PHP 5.3. I believe there may be a patch to make my site work with this version of PHP? But I am wondering if a zen cart can simply be transferred this way. Should I be following directions based on moving to a new host or server? I am not sure if moving to a new host within the same system would mean I had to follow all the steps involved in moving to a new server?

    Also, I know it is very important that I upgrade. Everything I read on upgrading says I should upgrade first and then move to a new server. However, they already moved me and will not move me back. Will this pose problems?

    Also, this has come at an extremely bad time-I have stores waiting to purchase new items I just got in, so I would prefer to update to 1.5 right after I let my stores purchase these items, rather than having everyone wait. My 1.3.8 is password protected since it is a wholesale store for retailers. Also, there are no links to it online, unless you have a different password to get to the password protected url for the wholesale store. So I figure waiting 2 weeks before I update would not pose huge security risks to anyone.

    Therefore, if anyone can direct me on how I can just fix the current version temporarily before I try to upgrade I would be indebted eternally! Thanks!

    Additional info: My host uses cPanel.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrading server within same host

    Quote Originally Posted by heygretchen View Post
    When I tried to get into the admin there was a page of error messages.
    What are the errors?
    Quote Originally Posted by heygretchen View Post
    I was running zen cart 1.3.8.

    My server said that maybe it was because the new server is running a newer version of PHP-PHP 5.3.
    Correct. v1.3.8 is NOT compatible with PHP versions newer than PHP 5.2.

    Quote Originally Posted by heygretchen View Post
    I believe there may be a patch to make my site work with this version of PHP?
    Yes, a patch for v1.3.8a with ONLY the BASICS of PHP 5.3 support was released in November 2009: http://www.zen-cart.com/forum/showthread.php?t=140960

    Quote Originally Posted by heygretchen View Post
    But I am wondering if a zen cart can simply be transferred this way. Should I be following directions based on moving to a new host or server? I am not sure if moving to a new host within the same system would mean I had to follow all the steps involved in moving to a new server?
    Yes, you should use the normal move instructions. In your case either your hosting company took care of that for you, or the new server is using the very same folder/path structure and you got lucky.

    Quote Originally Posted by heygretchen View Post
    Also, I know it is very important that I upgrade. Everything I read on upgrading says I should upgrade first and then move to a new server. However, they already moved me and will not move me back. Will this pose problems?
    Actually, everything I've ever posted about it says you should EITHER upgrade before OR after, not attempt both at the same time. That's because you need to sort out "move-related" problems BEFORE upgrading OR AFTER upgrading so that you know whether the problems are a result of the move or a result of mistakes made in your upgrade.
    Quote Originally Posted by heygretchen View Post
    Also, this has come at an extremely bad time
    It usually does. That's why we always recommend people keep their site software current instead of waiting for an emergency.
    .

    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.

  3. #3
    Join Date
    May 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: Upgrading server within same host

    Thank you so much Dr. Byte! The error messages I get when trying to log into my admin page looks like this:

    Deprecated: Function ereg() is deprecated in /iscsi/myname/public_html/sub/mysub/includes/classes/db/mysql/query_factory.php on line 177

    It says this about 25 times and then says:
    Deprecated: Function ereg() is deprecated in /iscsi/myname/public_html/sub/mysub/includes/classes/db/mysql/query_factory.php on line 412

    It says this hundreds and hundreds of times.

    The very last line says this once:

    Fatal error: Cannot redeclare date_diff() in /iscsi/myname/public_html/sub/mysub/changedname/includes/functions/general.php on line 3001

    Yes, a patch for v1.3.8a with ONLY the BASICS of PHP 5.3 support was released in November 2009:
    So does this means it's not even worth doing? If I do do this in order to hopefully getting it temporarily working, will it somehow make upgrading more difficult?

    Yes, you should use the normal move instructions. In your case either your hosting company took care of that for you, or the new server is using the very same folder/path structure and you got lucky.
    Since the host company took care of that for me or the new server is using the same folder/path structure, I am not sure what I am supposed to do then? Do I skip a step here somewhere https://www.zen-cart.com/tutorials/i...hp?article=108 And then why is nothing working? Is there just some settings I need to change?

    Actually, everything I've ever posted about it says you should EITHER upgrade before OR after, not attempt both at the same time. That's because you need to sort out "move-related" problems BEFORE upgrading OR AFTER upgrading so that you know whether the problems are a result of the move or a result of mistakes made in your upgrade.
    I am sorry, of course you are right. I am going a lot on memory here. So basically, I need to get the old version working on this new server even though it is the wrong version of PHP and then upgrade??

    Thank you again so much. I totally appreciate your time and energy in helping me.

  4. #4
    Join Date
    May 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: Upgrading server within same host

    deleted duplicate post
    Last edited by heygretchen; 22 Feb 2012 at 01:00 AM.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrading server within same host

    If you're truly running v1.3.8a, then the patch I mentioned should buy you some time. Make sure you take a complete backup of all your PHP files and your database before you do any patching.

    And NEVER use SimpleScripts. ESPECIALLY not for upgrading.
    .

    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.

  6. #6
    Join Date
    May 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: Upgrading server within same host

    Thank you so much. The patch worked!

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrading server within same host

    Be sure to proceed with your upgrade to the latest ZC version as soon as possible.
    .

    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.

  8. #8
    Join Date
    May 2009
    Posts
    7
    Plugin Contributions
    0

    Default Re: Upgrading server within same host

    Will do. I am already looking into it

    So, in the meantime everything works, but I am getting an error message in the admin for quantity discount, yet when I pretend order the quantity that the discount applies for, it works. Here is the error:

    Warning: include(/home/mypassword/public_html/sub/mysub/includes/languages/english/modules/order_total/ot_quantity_discount.php) [function.include]: failed to open stream: No such file or directory in /iscsi/ecawareb/public_html/shop/shophere/myadmin/modules.php on line 173

    Warning: include() [function.include]: Failed opening '/home/mypassword/public_html/sub/mysub/includes/languages/english/modules/order_total/ot_quantity_discount.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /iscsi/ecawareb/public_html/shop/shophere/myadmin/modules.php on line 173

    I see that the path starts with /home and then in the no such file or directory part the path starts with /iscsi. Should I be inputting iscsi somewhere to replace home?

    If I should start a new thread for this let me know. Thanks!

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Upgrading server within same host

    That suggests that your DIR_FS_CATALOG setting in your admin's configure.php file is still pointing to the old path. It needs to match the DIR_FS_CATALOG setting in your non-admin configure.php file
    .

    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.

 

 

Similar Threads

  1. v154 Moving a store within the same host
    By WhitePhantom in forum Installing on a Linux/Unix Server
    Replies: 13
    Last Post: 2 Apr 2015, 06:40 PM
  2. changing domain on same server/host
    By slater555 in forum General Questions
    Replies: 1
    Last Post: 1 Feb 2011, 05:26 AM
  3. Changing domain to another name within same host
    By jackryan in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 3 Dec 2009, 04:52 PM
  4. Moving files within same server
    By ellisn in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 10 Aug 2008, 11:27 PM
  5. New server, same host, same store, shared ssl no worky
    By Justwade in forum Basic Configuration
    Replies: 4
    Last Post: 29 Jan 2008, 04:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg