Forums / Installing on a Windows Server / Home Page white after change server

Home Page white after change server

Views: 1,889

Results 1 to 9 of 9
5 Nov 2010, 9:14 AM
#1
alebuti avatar

alebuti

New Zenner

Join Date:
Nov 2010
Location:
Roma
Posts:
11
Plugin Contributions:
0

Home Page white after change server

Hello everyone,
are an Italian user of ZenCart 1.3.9f. My English is not good and I write with the google translator.
Yesterday I changed my server (and even from Linux to Windows platform) by a beckup of all files in the store and then performing an installation-update on the new server. So far so ok. Fixed the problems of the new paths in the file "configure.php" and paths in the db. I have left this great problem: how can you see https://www.thefutureshop.it the home page is white and there is nothing. Until he was on linux server was working perfectly. I have to make some changes in the transition from Linux to Windows?
Does anyone have any idea? I just do not understand ...

5 Nov 2010, 10:22 AM
#3
alebuti avatar

alebuti

New Zenner

Join Date:
Nov 2010
Location:
Roma
Posts:
11
Plugin Contributions:
0

Re: Home Page white after change server

Thanks,
I read the guide and I found this error " [05-Nov-2010 11:16:09] PHP Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in C:\Inetpub\vhosts\thefutureshop.it\httpdocs\includes\functions\extra_functions\class.rlwp.php on line 23

but in that file there is no error

<?php /** * @package TPP * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: class.rlwp.php 511 2009-02-17 07:20:44Z hugo13 $ * * @author rainer AT langheiter DOT com // <http://www.filosofisch.com> // <http://edv.langheiter.com> * example: <!--%WordPress%--><!--###getWPTag###--> * first part == name of tab ( <!--%WordPress%--> ) * second part == name of called function; param: products_id ( <!--###getWPTag###--> ) */ define ('ABSPATH','/var/www/zc138/wordpress/'); // abs-path to wp if (file_exists(ABSPATH.'wp-config.php')) { require_once(ABSPATH.'wp-config.php'); $wpinstall = true; } class rlWP { ** public $wpinstall;** private $tag; function __construct(){ $this->wpinstall = false; if (file_exists(ABSPATH.'wp-config.php')) { $this->wpinstall = true; require_once(ABSPATH.'wp-config.php'); } } public function getWPTag($tag = 'zen-cart'){ $content = ''; $this->tag = $tag; if($this->wpinstall == true) { $lastposts = get_posts('tag=' . $this->tag); if(empty($lastposts)){ $content = 'NIX gefunden'; } else { foreach ($lastposts as $post) { $content .= '<div style="padding:4px; border: 1px solid green;"><h3>' . $post->post_title . '</h3><p>' . $post->post_content . '</p></div>'; } } } else { $content = 'WP nicht installiert/richtig konfiguriert'; } return $content; } } function getWPTag($tag = 'zen-cart'){ $wp = new rlWP(); return $wp->getWPTag($tag); } I can not understand...please
5 Nov 2010, 10:27 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Home Page white after change server

What version of PHP are you using?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Nov 2010, 10:35 AM
#5
alebuti avatar

alebuti

New Zenner

Join Date:
Nov 2010
Location:
Roma
Posts:
11
Plugin Contributions:
0

Re: Home Page white after change server

I'm using version 4.4.7

5 Nov 2010, 10:38 AM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Home Page white after change server

The piece of code that you're running requires PHP 5.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Nov 2010, 10:49 AM
#7
alebuti avatar

alebuti

New Zenner

Join Date:
Nov 2010
Location:
Roma
Posts:
11
Plugin Contributions:
0

Re: Home Page white after change server

thanks for your help, I am responsible for contacting the server to see if you can upgrade to version 5
Thanks

5 Nov 2010, 11:00 AM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Home Page white after change server

Personally, I'd recommend changing back to a Linux server too. Zen Cart is far more heavily tested on Linux, most of the people offering help here run it on Linux.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Nov 2010, 1:31 PM
#9
alebuti avatar

alebuti

New Zenner

Join Date:
Nov 2010
Location:
Roma
Posts:
11
Plugin Contributions:
0

Re: Home Page white after change server

I solved it by changing the php version in use. Now everything is ok. However I think that will migrate back to linux, I will follow your advice.
Thank you were very kind