Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
csc2ya
New Member
New Member



Joined: Apr 24, 2010
Posts: 10

PostPosted: Tue Jun 22, 2010 5:57 am Reply with quote

I've recently installed ravennuke 2.40.01 for a friend. I also uploaded the php-nuke xneon theme (It's not a ravennuke theme, but it seems to work with ravennuke).

I run the same version for my own site, and I also use the same theme, with no problems.

The differences between our hosting packages are as follows:

Mine:

Windows Server 2008 Enterprise
php5
mysql 5
iis 7

His:

Some form of linux (I would assume centos, but i'm not certain)
Apache (version is not known)
Mysql 5
php5

So as far as I can tell, our configurations are nearly identical apart from operating system and webserver versions.

However, when I try to change the theme to the xneon theme on his site, I end up looking at an internal server error, until I change to another theme via the database.

I thought it may have been differences in the theme file, so I zipped and downloaded the directory for the theme from my site, before uploading it to his site ,but again, when I try changing to the theme again, I end up looking at an internal server error for all pages.

Error log from his site shows a php error when changing to this particular theme:

[Tue Jun 22 12:07:38 2010] [error] [client 109.*] PHP Fatal error: Call to undefined function loadthemeinfo() in /home/bandit/public_html/themes/XNeon/theme_info.php on line 73
[Tue Jun 22 12:07:28 2010] [error] [client 109.*] PHP Fatal error: Call to undefined function loadthemeinfo() in /home/bandit/public_html/themes/XNeon/theme_info.php on line 73, referer: http://4-irc.com/admin.php?op=Configure

Does anyone know why this theme works on IIS, but won't work on apache?

If needed, I can upload a zip of the theme to my site so that it can be downloaded and looked at. Please let me know if you need this.
 
View user's profile Send private message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1123

PostPosted: Tue Jun 22, 2010 6:01 am Reply with quote

it should work properly on apache. try with another theme so you can notice it is not apache. I guess it is the theme.
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Tue Jun 22, 2010 6:18 am Reply with quote

Check the htaccess file - try renaming it to see if it works afterwards. If so, there is something in there that conflicts with the theme.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
csc2ya







PostPosted: Tue Jun 22, 2010 6:36 am Reply with quote

I've tried renaming the htaccess file as suggested, but that has not changed anything.

All the themes that are included with ravennuke work fine.

It's just this one theme that seems to basically kill php until I change it to something else.

If someone wants to take a look at the theme files, i've uploaded a zip of it to my site:

http://csc2ya.co.uk/downloads/xneon.zip
 
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Tue Jun 22, 2010 7:42 am Reply with quote

one thing I see under the theme.php footer is this:
Code:
$result = $db->sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$maxshow", $dbi);

   while(list($lid, $title, $hits) = $db->sql_fetchrow($result, $dbi)) {


should be this:
Code:
$result = $db->sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$maxshow");

   while(list($lid, $title, $hits) = $db->sql_fetchrow($result)) {

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Tue Jun 22, 2010 7:52 am Reply with quote

Hi,


I'm figuring this is a theme designed to be installed with some sort of theme manager(it's been a while since I've had a nuke install for this type of stuff).

If so, you may need to install that module before it will work.

Windows vs. linux, and you get to do it from the php user point of view. Very Happy
Linux for the win..... hehe, I never realized the irony of that short statement.

In either case, Linux is not as accepting of errors as Windows is, which can be a good thing, as in you fix things right.. but the downside is: when stuff is not right, it can break everything.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Tue Jun 22, 2010 8:16 am Reply with quote

I'd guess gregexp is right. You provide evidence of that in your first post where you quote:

Quote:
[Tue Jun 22 12:07:28 2010] [error] [client 109.*] PHP Fatal error: Call to undefined function loadthemeinfo() in /home/bandit/public_html/themes/XNeon/theme_info.php on line 73, referer: http://4-irc.com/admin.php?op=Configure


I'd bet that if you do a global search for 'loadtheminfo(' on the site that works you would find some kind of theme configuration program in the site that works but not on the site that doesn't work. Probably you need to load the theme configuration software in the admin directory for this to work. That's just a guess.
 
View user's profile Send private message Visit poster's website
csc2ya







PostPosted: Tue Jun 22, 2010 9:12 am Reply with quote

Quote:

I'm figuring this is a theme designed to be installed with some sort of theme manager(it's been a while since I've had a nuke install for this type of stuff).

If so, you may need to install that module before it will work.


i'm not sure if that's the case. Both sites are running more or less clean installs of the same version of RN, and the one running on windows doesn't have any theme management modules installed.

I believe the theme is designed for Nuke Evolution, as I was runnning that before changing to ravennuke. As you said, it may just be an error in the code somewhere that IIS simply ignores whereas apache doesn't.

I've put enough time into just getting ravennuke running for my friend. I'll just leave it on the default theme, and let him know some links for themes.
 
kguske







PostPosted: Tue Jun 22, 2010 9:35 am Reply with quote

The PHP configuration on IIS is allowing the missing function, and it's not on Apache. Different php.ini files.

You can add an empty function loadthemeinfo() to your RN mainfile, and the error will go away, but the theme won't work correctly.
 
Doulos
Life Cycles Becoming CPU Cycles



Joined: Jun 06, 2005
Posts: 732

PostPosted: Tue Jun 22, 2010 1:18 pm Reply with quote

That theme is compatible with apache, but not RN2.4. Look at this copy, I believe it has been updated to work with RN2.4. Check it for yourself, though.

Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
csc2ya







PostPosted: Tue Jun 22, 2010 3:43 pm Reply with quote

Thanks....that copy of the theme works. Just need to figure how how to get the nukenav css to match the colours now.
 
hicuxunicorniobestbuildpc







PostPosted: Wed Jun 23, 2010 12:23 am Reply with quote

The theme is not update at all from theme.php
Old

Code:
function themefooter() {

     global $index, $foot1, $banners, $foot2, $foot3, $foot4, $prefix, $total_time, $start_time, $db;

   $maxshow = 10;   // here you can change Number of downloads or Web links to display in each of the blocks.
   $a = 1;
   $result = sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$maxshow", $dbi);
   while(list($lid, $title, $hits) = sql_fetchrow($result)) {
    $title2 = ereg_replace("_", " ", "<b>$title</b>");
    $show .= "&nbsp;$a: <a href=\"links.html?amp;l_op=visit&amp;lid=$lid\">$title2</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b><font class=\"content\">$hits</b><font class=\"copyright\"> times<br>";
    $showlinks = "<A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" direction= \"up\" height=\"56\" scrollamount= \"1\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>$show";
    $a++;
   }
global $prefix, $db;
   $a = 1;
   $sql = "SELECT lid, title FROM ".$prefix."_downloads_downloads ORDER BY hits DESC LIMIT 0,$maxshow";
   $result = $db->sql_query($sql);
   while ($row = $db->sql_fetchrow($result)) {
    $title2 = ereg_replace("_", " ", $row[title]);
   $content .= "<a href=\"modules.php?name=Downloads&amp;d_op=getit&amp;lid=$row[lid]\"></a> $a: <a href=\"modules.php?name=Downloads&amp;d_op=getit&amp;lid=$row[lid]\"><b>$title2</b></a></span><br>";
   $showdl = "<A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" direction= \"up\" height=\"56\" scrollamount= \"1\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>$content";
    $a++;
   }


New

Code:
/************************************************************/

/* Function themefooter()                                   */
/************************************************************/

function themefooter() {
     global $index, $foot1, $banners, $foot2, $foot3, $foot4, $prefix, $total_time, $start_time, $db;

   $maxshow = 10;   // here you can change Number of downloads or Web links to display in each of the blocks.
   $a = 1;
   $result = $db->sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$maxshow");
   while(list($lid, $title, $hits) = $db->sql_fetchrow($result)) {
    $title2 = preg_replace("/_/", " ", "<b>$title</b>");
    $show .= "&nbsp;$a: <a href=\"links.html?amp;l_op=visit&amp;lid=$lid\">$title2</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b><font class=\"content\">$hits</b><font class=\"copyright\"> times<br>";
    $showlinks = "<A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" direction= \"up\" height=\"56\" scrollamount= \"1\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>$show";
    $a++;
   }
global $prefix, $db;
   $a = 1;
   $sql = "SELECT lid, title FROM ".$prefix."_downloads_downloads ORDER BY hits DESC LIMIT 0,$maxshow";
   $result = $db->sql_query($sql);
   while ($row = $db->sql_fetchrow($result)) {
    $title2 = preg_replace("/_/", " ", $row[title]);
   $content .= "<a href=\"modules.php?name=Downloads&amp;d_op=getit&amp;lid=$row[lid]\"></a> $a: <a href=\"modules.php?name=Downloads&amp;d_op=getit&amp;lid=$row[lid]\"><b>$title2</b></a></span><br>";
   $showdl = "<A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" direction= \"up\" height=\"56\" scrollamount= \"1\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>$content";
    $a++;
   }
 
Doulos







PostPosted: Wed Jun 23, 2010 12:31 pm Reply with quote

Sorry, I should have said it 'works' with RN2.4 and left it at that. Though, when I paste your changes into theme.php I get a blank page.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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 ©