Problems with moving servers and upgrading 5.6 => 7.0

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Problems with moving servers and upgrading 5.6 => 7.0
dkwehr
CZ Newbie
dkwehr has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Mar 06, 2004
0.00 posts per day
Posts: 4
Points: 276
   
Hi there,

We've actually moved servers once before and had no problems with moving phpnuke but just recently we've moved to a dedicated server and problems have started to popup.

The database is up and running with no problems but we have trouble with our theme.php file. Our phptheme uses a combination of php and html files which I *think* is causing the problem (could be a server side problem).

Basically parse errors on $thefile in theme.php in this part of the code


  $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;


I've tried looking around for help at nukecops, etc. already so hopefully you guys might know what is happening here.

Also we want to upgrade from 5.6 with phpbb port 2.0.0 to nuke 7.0
What would be the best way to do this? (step by step process would be VERY helpful)

Thanks!


Back to top Reply with quote
#2   re: Problems with moving servers and upgrading 5.6 => 7.0
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Can you post the whole theme it would be easier to see whats wrong.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Problems with moving servers and upgrading 5.6 => 7.0
dkwehr
CZ Newbie
dkwehr has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Mar 06, 2004
0.00 posts per day
Posts: 4
Points: 276
   
Yep sure,

The entire theme.php below
<?php

/************************************************************/
/* IMPORTANT NOTE FOR THEMES DEVELOPERS!                    */
/*                                                          */
/* When you start coding your theme, if you want to         */
/* distribute it, please double check it to fit the HTML    */
/* 4.01 Transitional Standard. You can use the W3 validator */
/* located at http://validator.w3.org                       */
/* If you don't know where to start with your theme, just   */
/* start modifying this theme, it's validate and is cool ;) */
/************************************************************/

/************************************************************/
/* Theme Colors Definition                                  */
/*                                                          */
/* Define colors for your web site. $bgcolor2 is generaly   */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the  */
/* other two bgcolor variables follows the same criteria.   */
/* $texcolor1 and 2 are for tables internal texts           */
/************************************************************/

$bgcolor1 = "#DCDCFE";
$bgcolor2 = "#ccccff";
$bgcolor3 = "#DCDCFE";
$bgcolor4 = "#ccccff";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

include("themes/Winter/tables.php");

/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(left);               */
/************************************************************/

function themeheader() {
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
   
   if ($username != "Anonymous") {
      $top_text = "Welcome back <a href=\"modules.php?name=Your_Account\">$username</a> to Anime-Source";
   } else {
      $top_text = "Hey stranger! Why don't you <a href=\"modules.php?name=Your_Account&op=new_user\">create</a> an account?";
   }
   
    echo ("<body bgcolor=\"#CCCCFF\" text=\"#000000\">\n");
   echo ("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"900\" align=\"center\">\n");

echo"<table WIDTH=900 BORDER=0 align=\"center\" CELLPADDING=0 CELLSPACING=0>"
."<tr> "
."<td COLSPAN=3> <img SRC=\"http://www.anime-source.com/html/themes/Winter/images/headers/022004/images/feb-banner_01.png\" WIDTH=835 HEIGHT=32 ALT=\"Banner Top\"></td>"
."<td ROWSPAN=5> <img SRC=\"http://www.anime-source.com/html/themes/Winter/images/headers/022004/images/feb-banner_02.png\" WIDTH=65 HEIGHT=160 ALT=\"February 2004\"></td>"
."</tr>"
."<tr> "
."<td ROWSPAN=4> <img SRC=\"http://www.anime-source.com/html/themes/Winter/images/headers/022004/images/feb-banner_03.png\" WIDTH=411 HEIGHT=128 ALT=\"Mi-Chan &amp; Takeo Valentines Day w/ Panda\"></td>"
."<td> <a href=\"http://www.anime-source.com\"><img SRC=\"http://www.anime-source.com/html/themes/Winter/images/headers/022004/images/feb-banner_04.png\" ALT=\"Anime-source.com\" WIDTH=324 HEIGHT=26 border=\"0\"></a></td>"
."<td ROWSPAN=4> <img SRC=\"http://www.anime-source.com/html/themes/Winter/images/headers/022004/images/feb-banner_05.png\" WIDTH=100 HEIGHT=128 ALT=\"\"></td>"
."</tr>"
."<tr> "
."<td> <img SRC=\"http://www.anime-source.com/html/themes/Winter/images/headers/022004/images/feb-banner_06.png\" WIDTH=324 HEIGHT=49 ALT=\"\"></td>"
."</tr>"
."<tr>"
."<td> <a href=\"http://www.anime-source.com/html/artcontest/index.html\"><img SRC=\"http://www.anime-source.com/html/themes/Winter/images/headers/022004/images/feb-banner_07.png\" ALT=\"Anime-Source.com Fanart Contest\" WIDTH=324 HEIGHT=10 border=\"0\"></a></td>"
."</tr>"
."<tr>"
."<td> <img SRC=\"http://www.anime-source.com/html/themes/Winter/images/headers/022004/images/feb-banner_08.png\" WIDTH=324 HEIGHT=43 ALT=\"\"></td>"
."</tr>"
."</table>"
."";

   
echo"<table width=\"900\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\" align=\"center\">"
  . "  <tr>"
  . "    <td background=\"themes/Winter/images/body_0_mid.gif\"><p align=\"center\"><strong>Popular website areas ::<a href=\"http://www.anime-source.com/html/modules.php?name=Forums\">Forums</a>:: ::<a href=\"http://www.anime-source.com/html/modules.php?name=Reviews\">Anime Reviews</a>:: ::<a href=\"http://www.anime-source.com/html/modules.php?name=Releases\">Daily Fansub Releases</a>:: ::<a href=\"http://www.anime-source.com/html/modules.php?name=Content&pa=showpage&pid=431\">Anime Currently Playing</a>:: </span>::"
  . ""
  . " "
  . "    <a href=\"http://www.anime-source.com/html/modules.php?name=Encyclopedia\">Encyclopedia</a>:: ::<a href=\"http://www.anime-source.com/html/modules.php?name=Content&pa=showpage&pid=432\">Support A-S</a>:: <br>"
  . "    </strong></p>    </td>"
  . "  </tr>"
  . "</table>"
."";


   

   
   //echo ("</table>\n");
   echo ("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"900\" align=\"center\" background=\"themes/Winter/images/body_0_mid.gif\">\n");
   echo ("<tr>\n");
   echo ("<td background=\"themes/Winter/images/body_0_left.gif\" width=\"9\"><img src=\"theme/Winter/images/pix.gif\" width=\"9\" height=\"1\" alt=\"\" border=\"0\"></td>");
   echo ("<td valign=\"top\" width=\"151\">");
      blocks(left);
   echo ("</td>");
   echo ("<td><img src=\"themes/Winter/images/pix.gif\" width=\"0\" height=\"1\" alt=\"\" border=\"0\"></td>");
   echo ("<td valign=\"top\" width=\"100%\">");
      if ($banners == 1) {
         include("banners.php");
       }
}

/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(right);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global $index, $foot1, $foot2, $foot3, $foot4;
   if ($index == 1) {
      echo ("</td>");
      echo ("<td><img src=\"themes/Winter/images/pix.gif\" width=\"2\" height=\"1\" alt=\"\" border=\"0\"></td>");
      echo ("<td valign=\"top\" width=\"151\" align=\"right\">");
      blocks(right);
      echo ("</td>");
      echo ("<td background=\"themes/Winter/images/body_0_right.gif\" width=\"7\"><img src=\"theme/Winter/images/pix.gif\" width=\"7\" height=\"1\" alt=\"\" border=\"0\"></td>");
      echo ("</tr>\n");
      echo ("</table>\n");
    } else {
      echo ("</td>");
      echo ("<td background=\"themes/Winter/images/body_0_right.gif\" width=\"7\"><img src=\"theme/Winter/images/pix.gif\" width=\"7\" height=\"1\" alt=\"\" border=\"0\"></td>");
      echo ("</tr>\n");
      echo ("</table>\n");
   }
   echo ("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"900\" align=\"center\" background=\"themes/Winter/images/body_1_1.gif\">\n");
   echo ("<tr>\n");
   echo ("<td width=\"9\"><img src=\"themes/Winter/images/body_1_01.gif\" width=\"9\" height=\"11\" alt=\"\" border=\"0\"></td>");
   echo ("<td background=\"themes/Winter/images/body_1_02.gif\"><img src=\"theme/Winter/images/pix.gif\" width=\"7\" height=\"1\" alt=\"\" border=\"0\"></td>");
   echo ("<td width=\"15\"><img src=\"themes/Winter/images/body_1_03.gif\" width=\"15\" height=\"11\" alt=\"\" border=\"0\"></td>");
   echo ("</tr>\n");
   echo ("</table>\n");

    $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4";
   echo ("<br>\n");
   echo ("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"500\" align=\"center\">\n");
   echo ("<tr>\n");
   echo ("<td><img src=\"themes/Winter/images/foot_0_01.gif\" width=\"6\" height=\"7\" alt=\"\" border=\"0\"></td>\n");
   echo ("<td background=\"themes/Winter/images/foot_0_02.gif\"><img src=\"themes/Winter/images/pix.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\"></td>\n");
   echo ("<td><img src=\"themes/Winter/images/foot_0_03.gif\" width=\"7\" height=\"7\" alt=\"\" border=\"0\"></td>\n");
   echo ("</tr>\n");
   echo ("<tr>\n");
   echo ("<td background=\"themes/Winter/images/foot_1_01.gif\"><img src=\"themes/Winter/images/pix.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\"></td>\n");
   echo ("<td background=\"themes/Winter/images/foot_1_02.gif\" align=\"center\">$footer_message</td>\n");
   echo ("<td background=\"themes/Winter/images/foot_1_03.gif\"><img src=\"themes/Winter/images/pix.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\"></td>\n");
   echo ("</tr>\n");
   echo ("<tr>\n");
   echo ("<td><img src=\"themes/Winter/images/foot_2_01.gif\" width=\"6\" height=\"7\" alt=\"\" border=\"0\"></td>\n");
   echo ("<td background=\"themes/Winter/images/foot_2_02.gif\"><img src=\"themes/Winter/images/pix.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\"></td>\n");
   echo ("<td><img src=\"themes/Winter/images/foot_2_03.gif\" width=\"7\" height=\"7\" alt=\"\" border=\"0\"></td>\n");
   echo ("</tr>\n");
   echo ("</table>\n");
}

/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the Homepage         */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   $content = "$thetext$notes\n";
    } else {
   if($informant != "") {
       $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ($counter "._READS.")";
    $tmpl_file = "themes/Winter/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themearticle()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   $content = "$thetext$notes\n";
    } else {
   if($informant != "") {
       $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $tmpl_file = "themes/Winter/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title, $content) {
    $tmpl_file = "themes/Winter/blocks.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

?>


Our website URL is [ Register or login to view links on this board. ]

I downloaded another random theme and used that as the temp theme, and it does not give me any parse errors. However I am getting errors from admin.php I believe as well...

parts of code shows up as text in the admin panel....

w.gif"); } ?>
Backup DB ackup.gif"); } ?>
Blocks ks.gif"); } ?>
_CONTEN2MANAGER 2.gif"); } ?> 
Content Manager nt.gif"); } ?>
Download
ad.gif"); } ?>
Edit Admins rs.gif"); } ?>
Edit Users rs.gif"); } ?>
Encyclopedia ia.gif"); } ?>
Ephemerids em.gif"); } ?>
FAQ aq.gif"); } ?>
Forums
ORUMS."", "forum.gif"); } ?>
HTTP Referers er.gif"); } ?>
Messages es.gif"); } ?>
Modules es.gif"); } ?>
Newsletter er.gif"); } ?>
Optimize DB ?>
Preferences
es.gif"); } ?>
Reviews ws.gif"); } ?>
Sections Manager ns.gif"); } ?>
Submissions s.gif"); } ?>
Surveys/Polls ll.gif"); } ?>
Topics Manager n.gif"); } ?>
Web Links
ks.gif"); } ?>


Thanks Again.


Back to top Reply with quote
#4   re: Problems with moving servers and upgrading 5.6 => 7.0
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
What version of PHP does the server have?

It looks like your missing some of the admin file you might want to try reuploading it. When you upgraded did you over write the files or did you delete the files then upload the new Nuke?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   re: Problems with moving servers and upgrading 5.6 => 7.0
dkwehr
CZ Newbie
dkwehr has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Mar 06, 2004
0.00 posts per day
Posts: 4
Points: 276
   
lol.. we haven't UPGRADED yet.. all these errors are just from MOVING....

We've moved before and we haven't had such problems before. I really think this is some server side stuff we're missing here.

We're using PHP Version 4.3.4

You can see the settings here: [ Register or login to view links on this board. ]
[ Register or login to view links on this board. ] would be where the nuke is supposed to be.


Also.. I've tried replacing the admin.php with a fresh one from the 5.6 package from nukecops. Same error occurs.


Really appreciate you trying to help me here =)



Back to top Reply with quote
#6   re: Problems with moving servers and upgrading 5.6 => 7.0
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Only way I can help is if you get me the theme to try on a test site. I have php 4.3.4 on my other server so I can test it there. Upload it and leave me a link.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   re: Problems with moving servers and upgrading 5.6 => 7.0
dkwehr
CZ Newbie
dkwehr has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Mar 06, 2004
0.00 posts per day
Posts: 4
Points: 276
   
EDIT:

We rebooted apache and that fixed most of our theme.php problems.. *sigh*...

can't believe i wasted so much time debugging this ... heh



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum