Troubles after moving to a new server
-
Hi, i have customized a theme which works just fine on my server.
However, after uploading it to my client’s server, some things stopped working.I made a rotating background, which shifts images randomly with every page reload. The css code is:
#rotator { background: url('images/rot_images/rotate.php') no-repeat center top; }
It works great on my server, but on my client’s server an error_log is created:
Cannot modify header information - headers already sent by (output started at .../public_html/wp-content/themes/lavinia/images/rot_images/rotate.php:3) in .../wp-content/themes/lavinia/images/rot_images/rotate.php on line 28
rotate.php on line 28 reads:
header('Location: '.$folder.$files[$rand]);
Here is the whole rotate.php:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
The php version on my server is 5.3.13, and on my client’s – 5.2.17, though im not sure it’s the problem.
- The topic ‘Troubles after moving to a new server’ is closed to new replies.