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
Author Message
manunkind
Client



Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Sun Jan 23, 2005 4:53 pm Reply with quote

System: Version 7.6 downloaded from here. Updated all files to Chat's 2.8 Patch.

Users are getting error messages when trying to view a Journal entry. Here they are:

Code:
Warning: main(modules/Journal/header.php): failed to open stream: No such file or directory in /path/to/modules/Journal/display.php on line 45


Warning: main(modules/Journal/header.php): failed to open stream: No such file or directory in /path/to/modules/Journal/display.php on line 45

Warning: main(): Failed opening 'modules/Journal/header.php' for inclusion (include_path='.:/php/includes:/usr/local/lib/php') in /path/to/modules/Journal/display.php on line 45

Warning: main(modules/Journal/kses.php): failed to open stream: No such file or directory in /path/to/modules/Journal/display.php on line 47

Warning: main(modules/Journal/kses.php): failed to open stream: No such file or directory in /path/to/modules/Journal/display.php on line 47

Warning: main(): Failed opening 'modules/Journal/kses.php' for inclusion (include_path='.:/php/includes:/usr/local/lib/php') in /path/to/modules/Journal/display.php on line 47

Fatal error: Call to undefined function: opentable() in /path/to/mainfile.php on line 337


I'm looking at display.php in the Journal folder and I see this code:

Code:
$pagetitle = "- "._USERSJOURNAL."";

    include("modules/$module_name/header.php");
include("modules/$module_name/functions.php");
    include("modules/$module_name/kses.php");
    if (is_user($user)) {
cookiedecode($user);
$username = $cookie[1];


But there are no such files in my Journal directory. I even went back to the files that I downloaded and they are not in there. What happened??
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Jan 23, 2005 8:48 pm Reply with quote

Don't ask me how that happened because I haven't a clue Confused

Anyway, redownload from here http://www.ravenphpscripts.com/viewdownloaddetails-3-134

Thanks for making me aware of this Smile
 
View user's profile Send private message
manunkind







PostPosted: Sun Jan 23, 2005 11:19 pm Reply with quote

Thanks, I thought I was loosing my mind. Smile

I'm just going to re-upload the Journal folder unless there is something else that might be missing?
 
Raven







PostPosted: Sun Jan 23, 2005 11:21 pm Reply with quote

Hopefully not.
 
manunkind







PostPosted: Sun Jan 23, 2005 11:31 pm Reply with quote

Much better. But one error now shows when viewing an entry:

Code:
Fatal error: Call to undefined function: advt_stripslashes() in /path/to/modules/Journal/display.php on line 105


Any ideas?
 
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sun Jan 23, 2005 11:36 pm Reply with quote

I've been working on it a little at a time and hope to submit an update soon that will auto detect if wysiwg(htmlArea), spaw or FCK are installed as modules. Using FCK on my site now and its nice for FireFox users.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
manunkind







PostPosted: Sun Jan 23, 2005 11:42 pm Reply with quote

So what do I do?
 
sixonetonoffun







PostPosted: Sun Jan 23, 2005 11:47 pm Reply with quote

Sorry missed that last post somehow.
Check the functions.php see if its in there
Code:


    function ADVT_stripslashes($text ) {
        if (get_magic_quotes_gpc() == 1 ) {
            return(stripslashes($text ));
        }
        return($text );
    }
 
manunkind







PostPosted: Sun Jan 23, 2005 11:52 pm Reply with quote

No, it's not in there. Where do I put it exactly?
 
sixonetonoffun







PostPosted: Sun Jan 23, 2005 11:56 pm Reply with quote

Ok this was from 7.3 so there might be some change to the protection line at the begining of yours.

Code:


<?php
    if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
        die ("You can't access this file directly...");
    }
    require_once("mainfile.php");
    $module_name = basename(dirname(__FILE__));
    get_lang($module_name);

    /* User Settings */
    $debug = "false";

    /* Change Smiles Path Here */
    $jsmiles = "./modules/Journal/images/moods";

    /* KSES array see KSES readme to tweak settings */
    $allowed_protocols = array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'gopher', 'mailto');
    // KSES allowed tags array
    // This is a loose filtering array
    $allowed = array('pre' => array('align' => 1),
        'strong' => array(),
        'hr' => array(),
        'div' => array('align' => 1),
        'img' => array('alt' => 1, 'src' => 1, 'hspace' => 1, 'vspace' => 1, 'border' => 1),
        'table' => array('align' => 1, 'border' => 1, 'cell' => 1),
        'tr' => array('align' => 1),
        'td' => array(),
        'ul' => array(),
        'li' => array(),
        'ol' => array(),
        'a' => array('href' => 1, 'target' => 1,
        'title' => array('minlen' => 4, 'maxlen' => 120)),
        'font' => array('face' => 1, 'style' => 1, 'color' => 1,
        'size' => array('minval' => 1, 'maxval' => 7)),
        'p' => array('align' => 1),
        'b' => array(),
        'i' => array(),
        'u' => array(),
        'em' => array(),
        'br' => array());
    // End KSES Options
    function ADVT_stripslashes($text ) {
        if (get_magic_quotes_gpc() == 1 ) {
            return(stripslashes($text ));
        }
        return($text );
    }
    function journalfoot() {
        include("footer.php");
    }
    function startjournal($sitename, $user) {
        global $module_name;
        $user = check_html($user, nohtml);
        $sitename = check_html($sitename, nohtml);
        if (is_user($user)) {
            $j_user1 = "<center>[ <a href=\"modules.php?name=$module_name\">"._JOURNALDIR."</a> | <a href=\"modules.php?name=$module_name&file=edit\">"._YOURJOURNAL."</a> ]</center>";
            $j_user2 = "";
        } else {
            $j_user1 = "<center>[ <a href=\"modules.php?name=$module_name\">"._JOURNALDIR."</a> | <a href=\"account-new_user.html\">"._CREATEACCOUNT."</a> ]</center>";
            $j_user2 = "<br><center><font class=\"tiny\">"._MEMBERSCAN."</font></center>";
        }
        title("$sitename: "._USERSJOURNAL."");
        if (is_user($user)) {
            include("modules/Your_Account/navbar.php");
            OpenTable();
            nav();
            CloseTable();
            echo "<br>";
        }
        OpenTable();
        echo "<center><img src=modules/$module_name/images/bgimage.gif><br><font class=title><b>"._USERSJOURNAL."</b></font></center>";
        echo "$j_user1";
        echo "$j_user2";
        CloseTable();
    }
?>
 
manunkind







PostPosted: Mon Jan 24, 2005 12:02 am Reply with quote

Now I just get a blank screen:

http://www.pcsympathy.com/gate.html?name=Journal&file=display&jid=13
 
manunkind







PostPosted: Mon Jan 24, 2005 10:06 am Reply with quote

I can live with this for a bit. The Journals have never been super popular on my board.

But if anybody finds the fix, please post back and help me get my site working.
 
sixonetonoffun







PostPosted: Mon Jan 24, 2005 10:26 am Reply with quote

A blank page is usually a parse error. Usually a left out } or ; somewhere. Otherwise if the text wrapped when editing the file or line spaces after the closing ?> sometimes.

Did the text wrap maybe?
 
manunkind







PostPosted: Mon Jan 24, 2005 10:47 am Reply with quote

I don't see anything and I copied the missing parts from your post above, but take a look:

http://www.pcsympathy.com/display.txt

http://www.pcsympathy.com/functions.txt

The problem is only when viewing entries, so those are the two files above.
 
manunkind







PostPosted: Mon Jan 24, 2005 11:25 am Reply with quote

OK, I loaded another browser and tried it and this time I got an error message on the page (IE just gave a blank page):

Code:
Fatal error: Call to undefined function: replace_for_mod_rewrite() in /path/to/footer.php on line 24


I think this has something to do with Googlifier. Googlifier has me putting this code in my footer.php:

Code:
$contents = ob_get_contents(); // store buffer in $contents

ob_end_clean(); // delete output buffer and stop buffering
echo replace_for_mod_rewrite($contents); //display modified buffer to screen
global $dbg_starttime;


Does that help anybody trying to fix this?
 
sixonetonoffun







PostPosted: Mon Jan 24, 2005 11:30 am Reply with quote

Ok I think somehow we have a mix of the files. I'll get something together for you this evening have to cut out for a while right now.
You can try these files from my 7.6 test site if ya want they seem to work but I don't honestly know whats in there because I have been making some updates on the fly.
http://www.glowoptics.com/files/Journal_tmp.zip
Some of the changes I'm working on are shown here:
http://www.webtree.org/~pratt/
Nothing big but some functional changes.
 
manunkind







PostPosted: Mon Jan 24, 2005 5:59 pm Reply with quote

That folder is missing the same 2 files in the Subject line of this post.

I'll just wait and see what you come up with.
 
manunkind







PostPosted: Mon Jan 24, 2005 6:01 pm Reply with quote

Do you think I could at least go back to the original 7.6 Journal files before they were tampered with? Or are these it?
 
Raven







PostPosted: Mon Jan 24, 2005 6:09 pm Reply with quote

Just d/l the 7.5. They should be the originals.
 
manunkind







PostPosted: Mon Jan 24, 2005 7:02 pm Reply with quote

That worked Raven. Thank you so much!
 
Kelaiel
New Member
New Member



Joined: Feb 10, 2005
Posts: 3
Location: State of Denial

PostPosted: Thu Feb 10, 2005 9:59 pm Reply with quote

I had the same problem. Using the NCO 7.6 distribution of phpnuke. All I did was copy display.php from the NCO 7.5 distribution (it doesn't call to kses.php, that file seems to be new in 7.6) and everything appears to work fine..

I got lazy, but it works Smile
 
View user's profile Send private message Send e-mail Visit poster's website
manunkind







PostPosted: Fri Feb 25, 2005 4:22 pm Reply with quote

I just upgraded to chat's 2.9 patch, and once again, all these problems are back again.

I will once again go back to the 7.5 Journal Module.

Can we stop updating and distributing bad files?
 
sixonetonoffun







PostPosted: Fri Feb 25, 2005 10:18 pm Reply with quote

Thats partly my fault. I promised chat I'd send him an update for it but haven't made good yet. If your volunteering to take it on so much the better. Otherwise for all intents its an abandoned application feel free to delete it if you can't make use of it.
 
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

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 ©