Author |
Message |
brugopolis
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 05, 2007
Posts: 22
Location: Brugge, Flanders
|
Posted:
Mon Mar 05, 2007 10:05 pm |
|
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: Only registered users can see links on this board! Get registered or login!
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](modules/Forums/images/smiles/icon_wink.gif) |
Last edited by brugopolis on Tue Mar 06, 2007 3:02 pm; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
Site Admin
![](modules/Forums/images/avatars/502a2d1345d88a86ddb4a.png)
Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Tue Mar 06, 2007 7:20 am |
|
What theme are you changing to and from?
Also does this happen with all themes, including the onces bundled with Nuke? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
brugopolis
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 06, 2007 10:46 am |
|
Happens with all the themes, including the originals |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
brugopolis
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 12, 2007 12:09 pm |
|
Still didn't find this one... Could it have something to do with the forum? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
brugopolis
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 12, 2007 12:10 pm |
|
Still didn't find this one... Could it have something to do with the forum? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 12, 2007 2:18 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 12, 2007 2:22 pm |
|
Can you post the code from the mainfile.php around lines 1460. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 12, 2007 2:25 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
brugopolis
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 12, 2007 3:15 pm |
|
That one's resolved... It was some residue code from a module I installed earlier... That's fixed now... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 12, 2007 3:18 pm |
|
Just to clarify, are you saying it's all fixed now including this problem? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 12, 2007 3:23 pm |
|
After re-reading your post your saying the other problem is fixed.
So... Are you still getting the above errors? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
brugopolis
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 13, 2007 6:16 am |
|
This problem is not solved, I still have this error... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Mar 13, 2007 6:25 am |
|
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. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
brugopolis
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 13, 2007 6:31 am |
|
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... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 13, 2007 6:57 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
brugopolis
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 13, 2007 7:04 am |
|
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;
}
}
?> |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 13, 2007 7:13 am |
|
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... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
brugopolis
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 13, 2007 7:17 am |
|
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... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 22, 2007 7:04 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
brugopolis
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 22, 2007 7:12 am |
|
'fraid not, but thanks for checking it anyway ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|