Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6 Bugs/Fixes
Author Message
brugopolis
New Member
New Member



Joined: Mar 05, 2007
Posts: 22
Location: Brugge, Flanders

PostPosted: Mon Mar 05, 2007 10:05 pm Reply with quote

When I change the theme in Your Account it changes for all modules and pages except for... Your Account (that keeps using the default theme)...

The error I get is:

Quote:
Warning: include(modules/Your_Account/includes/mainfileend.php) [function.include]: failed to open stream: No such file or directory in /<<details removed by admin>>/mainfile.php on line 1460

Warning: include() [function.include]: Failed opening 'modules/Your_Account/includes/mainfileend.php' for inclusion (include_path='.:/usr/local/lib/php') in /<<details removed by admin>>/mainfile.php on line 1460


URL: http://test.spottersworld.com
SQL: MySQL 4.1.13a
Nuke: phpNUKE 7.6.0.3.1
Sentinel: 2.5.06

Additional modules:
4nNewsletter
Sommaire 2.1.1


and please keep in mind that I am an ABSOLUTEUTTERLYNEWBIE

Wink


Last edited by brugopolis on Tue Mar 06, 2007 3:02 pm; edited 1 time in total 
View user's profile Send private message Visit poster's website
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Tue Mar 06, 2007 7:20 am Reply with quote

What theme are you changing to and from?

Also does this happen with all themes, including the onces bundled with Nuke?
 
View user's profile Send private message
brugopolis







PostPosted: Tue Mar 06, 2007 10:46 am Reply with quote

Happens with all the themes, including the originals
 
brugopolis







PostPosted: Mon Mar 12, 2007 12:09 pm Reply with quote

Still didn't find this one... Could it have something to do with the forum?
 
brugopolis







PostPosted: Mon Mar 12, 2007 12:10 pm Reply with quote

Still didn't find this one... Could it have something to do with the forum?
 
jakec







PostPosted: Mon Mar 12, 2007 2:18 pm Reply with quote

Are you using any YA mods?

I'm not sure where this file reference is coming from:
Code:
modules/Your_Account/includes/mainfileend.php


It doesn't appear to part of the standard nuke 7.6.
 
jakec







PostPosted: Mon Mar 12, 2007 2:22 pm Reply with quote

Can you post the code from the mainfile.php around lines 1460.
 
jakec







PostPosted: Mon Mar 12, 2007 2:25 pm Reply with quote

OK just realised this is the same issue as your other post, which is what Montego said in your other post.

Therefore if you fix the other issue this should hopefully fix this problem.
 
brugopolis







PostPosted: Mon Mar 12, 2007 3:15 pm Reply with quote

That one's resolved... It was some residue code from a module I installed earlier... That's fixed now...
 
jakec







PostPosted: Mon Mar 12, 2007 3:18 pm Reply with quote

Just to clarify, are you saying it's all fixed now including this problem?
 
jakec







PostPosted: Mon Mar 12, 2007 3:23 pm Reply with quote

After re-reading your post your saying the other problem is fixed.

So... Are you still getting the above errors?
 
brugopolis







PostPosted: Tue Mar 13, 2007 6:16 am Reply with quote

This problem is not solved, I still have this error...
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Mar 13, 2007 6:25 am Reply with quote

brugopolis wrote:
This problem is not solved, I still have this error...


You must still have some residual code. That include has never been in core Nuke that I can remember.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
brugopolis







PostPosted: Tue Mar 13, 2007 6:31 am Reply with quote

montego wrote:
You must still have some residual code. That include has never been in core Nuke that I can remember.


You must still have some residual code. That include has never been in core Nuke that I can remember.[/quote]The code's gone... It's a clean install of patched phpnuke 7.6.0.3.1 with Sommaire v2.11, Sentinel 2.5.06, 4nNewsletter, Approve Membership (Ulsoft), I Frame and Videostream 4.5 so there's no residue what so ever...
 
jakec







PostPosted: Tue Mar 13, 2007 6:57 am Reply with quote

That doesn't seem to make sense, if you are still getting these errors:

Quote:
Warning: include(modules/Your_Account/includes/mainfileend.php) [function.include]: failed to open stream: No such file or directory in /<<details removed by admin>>/mainfile.php on line 1460

Warning: include() [function.include]: Failed opening 'modules/Your_Account/includes/mainfileend.php' for inclusion (include_path='.:/usr/local/lib/php') in /<<details removed by admin>>/mainfile.php on line 1460


Please can you post the code around line 1460 from your mainfile.php, say 10 lines above and below.
 
brugopolis







PostPosted: Tue Mar 13, 2007 7:04 am Reply with quote

I don't get these errors anymore, I get NO ERRORS at all... the newsposting problem is fixed, only the theme change problem (theme changes in all modules except for Your Account, no errors) remains...

I only have 1438 lines in mainfile.php
These are the last lines:

function paid() {
global $db, $user, $cookie, $adminmail, $sitename, $nukeurl, $subscription_url, $user_prefix, $prefix;
if (is_user($user)) {
if (!empty($subscription_url)) {
$renew = ""._SUBRENEW." $subscription_url";
} else {
$renew = "";
}
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='".intval($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;
}
}


if (isset($gfx)){
switch($gfx) {

case "gfx":
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);
$ThemeSel = get_theme();
if (file_exists("themes/".$ThemeSel."/images/code_bg.jpg")) {
$image = ImageCreateFromJPEG("themes/".$ThemeSel."/images/code_bg.jpg");
} else {
$image = ImageCreateFromJPEG("images/code_bg.jpg");
}
$text_color = ImageColorAllocate($image, 80, 80, 80);
Header("Content-type: image/jpeg");
ImageString ($image, 5, 12, 2, $code, $text_color);
ImageJPEG($image, '', 75);
ImageDestroy($image);
die();
break;

}
}

?>
 
montego







PostPosted: Tue Mar 13, 2007 7:13 am Reply with quote

brugopolis, this is starting to sound familiar (except the mainfileend.php thing).

By the way, you say that you installed the Approved Membership module. That makes changes to the YA module, so you might want to check those edits again.

In the meantime, when I get some time, I will go back through our work on RavenNuke 2.10.00 and see if I can find this issue. It does sound familiar now...
 
brugopolis







PostPosted: Tue Mar 13, 2007 7:17 am Reply with quote

I contacted the guys at Ulsoft and there didn't seem to be a problem with the YA but please do check your previous encounter with this crazy little bug...
 
montego







PostPosted: Thu Mar 22, 2007 7:04 am Reply with quote

I have checked and it turns out that the theme change bug problem that I was referring to was an internal bug that we caused, but was caught before release in 2.10. So, unfortunately, that doesn't help you.
 
brugopolis







PostPosted: Thu Mar 22, 2007 7:12 am Reply with quote

'fraid not, but thanks for checking it anyway Wink
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6 Bugs/Fixes

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 ©