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 -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
Reeco
New Member
New Member



Joined: Mar 21, 2006
Posts: 9

PostPosted: Sat Apr 22, 2006 5:51 am Reply with quote

This is a clean install.

The whole site works great apart from 2 simple Iframe modules I have made. All I get is a white page when trying to access them. I have error reporting on but nothing shows up.

Any ideas?

Very Happy
 
View user's profile Send private message
montego
Site Admin



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

PostPosted: Sat Apr 22, 2006 11:43 am Reply with quote

Are just the pages within the Iframe's blank or does your whole site go blank? If it is your entire site, you will need to deactivate those blocks, using phpMyAdmin if you must (its the nuke_blocks table) and then see which one is causing the issue.

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







PostPosted: Sat Apr 22, 2006 12:16 pm Reply with quote

Thanks for the reply Montego.

The only thing that is blank is the faulty module, but this page is completely blank, not just the pages within the I-Frame. Nothing bugs out though; if I go to my homepage or admin.php via the address bar everything is intact and working fine.

It's strange, as I have the same modules working fine on an unpatched, vanilla Nuke install elsewhere. When I patched this site the modules stopped working. I assumed I'd made a mistake during the patching, only to find the same issue with a fresh Raven install.

Confused
 
montego







PostPosted: Sat Apr 22, 2006 3:33 pm Reply with quote

You need to make it compatible with the 3.1 or better patchset. Not sure exactly what you are doing or how to help. Maybe take a look at another module such as "Content" or "News" and see what they have done at the top. You may also want to read the FAQs here at Raven's site for clues.
 
Reeco







PostPosted: Sun Apr 23, 2006 4:31 am Reply with quote

Yay!

Had a play with the code as you suggested.

I replaced:

Code:
<?

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
  die ("You can't access this file directly...");
}
if(!IsSet($mainfile)) { include ("mainfile.php"); }


With:

Code:
<?php


if ( !defined('MODULE_FILE') )
{
   die("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);

$pagetitle = "- $module_name";


And it's working perfectly. Thanks a lot for the help.

Very Happy
 
montego







PostPosted: Sun Apr 23, 2006 6:50 am Reply with quote

No problem. Glad you got it working.
 
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 -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

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 ©