Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)
Author Message
sabastina
Hangin' Around



Joined: May 12, 2005
Posts: 37

PostPosted: Sun May 15, 2005 10:55 pm Reply with quote

Using a 7.6 that is patched, and NukeSentinel_710_221.

I've followed the instructions and also applied the solutions on the two most recent posts related to missing forums pages. Finnally, this error resulted. It said there is an unexpected $ in line 1185.

The line on 1185 is :
Code:
            $body = ""._HELLO." $cookie[1]:\n\n"._SUBSCRIPTIONAT." $sitename "._HASEXPIRED."\n$renew\n\n"._HOPESERVED."\n\n$sitename


Instead of posting the entire long file here, I will post the section before and after. If more is needed, I can post that too...

Code:
cookiedecode($user);

      $sql = "SELECT * FROM ".$prefix."_subscriptions WHERE userid='$cookie[0]'";
      $result = $db->sql_query($sql);
      $numrows = $db->sql_numrows($result);
      $row = $db->sql_fetchrow($result);
      if ($numrows == 0) {
         return 0;
      } elseif ($numrows != 0) {
         $time = time();
         if ($row[subscription_expire] <= $time) {
            $db->sql_query("DELETE FROM ".$prefix."_subscriptions WHERE userid='$cookie[0]' AND id='$row[id]'");
            $from = "$sitename <$adminmail>";
            $subject = "$sitename: "._SUBEXPIRED."";
            $body = ""._HELLO." $cookie[1]:\n\n"._SUBSCRIPTIONAT." $sitename "._HASEXPIRED."\n$renew\n\n"._HOPESERVED."\n\n$sitename "._TEAM."\n$nukeurl";
            $row = $db->sql_fetchrow($db->sql_query("SELECT user_email FROM ".$user_prefix."_users WHERE id='$cookie[0]' AND nickname='$cookie[1]' AND password='$cookie[2]'"));
            mail($row[user_email], $subject, $body, "From: $from\nX-Mailer: PHP/" . phpversion());
         }
         return 1;
      }
   } else {
      return 0;   
   }
}

function stripos_clone($haystack, $needle, $offset=0) {


I don't understand this part of the coding at all. Any help would be appreciated.

Thanks for your time.

Sabastina
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun May 15, 2005 11:14 pm Reply with quote

Just a shot in the dark. Try changing
Code:
$body = ""._HELLO." $cookie[1]:\n\n"._SUBSCRIPTIONAT." $sitename "._HASEXPIRED."\n$renew\n\n"._HOPESERVED."\n\n$sitename
to
Code:
$body = ""._HELLO." ".$cookie[1].":\n\n"._SUBSCRIPTIONAT." $sitename "._HASEXPIRED."\n$renew\n\n"._HOPESERVED."\n\n$sitename
 
View user's profile Send private message
sabastina







PostPosted: Sun May 15, 2005 11:37 pm Reply with quote

Thanks Raven. Didn't work though. Sad

It's just the blank grey page...

sabastina
 
Raven







PostPosted: Mon May 16, 2005 12:12 am Reply with quote

But no error?
 
sabastina







PostPosted: Mon May 16, 2005 12:38 am Reply with quote

None. Just the grey page.

I've reinstalled both my nuke and sentinel 4 times since I posted the other day. I've followed the instructions each time (unless I'm missing the same thing each time) and the same results.

I've checked the files (pagestart, ect) for the needed changes and also those listed in the thread "Sentinel for PHPNuke 7.6 with 2.8 patch forum admin error".

I'm completely lost as to what to do.

I've attempted to get a copy of the error log, but my webanalyzer says that it only generates them once a day and to please check back later...

thanks,

sabastina
 
Raven







PostPosted: Mon May 16, 2005 12:41 am Reply with quote

Then it did work. It got rid of the unexpected $ error. So now we're left with this new, blank page error. Correct?
 
sabastina







PostPosted: Mon May 16, 2005 1:01 am Reply with quote

Yes, that is correct.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©