Author |
Message |
manunkind
Client

Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM
|
Posted:
Sun Jan 23, 2005 4:53 pm |
|
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?? |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sun Jan 23, 2005 8:48 pm |
|
|
|
 |
manunkind

|
Posted:
Sun Jan 23, 2005 11:19 pm |
|
Thanks, I thought I was loosing my mind.
I'm just going to re-upload the Journal folder unless there is something else that might be missing? |
|
|
|
 |
Raven

|
Posted:
Sun Jan 23, 2005 11:21 pm |
|
|
|
 |
manunkind

|
Posted:
Sun Jan 23, 2005 11:31 pm |
|
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
|
Posted:
Sun Jan 23, 2005 11:36 pm |
|
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 |
|
|
 |
manunkind

|
Posted:
Sun Jan 23, 2005 11:42 pm |
|
|
|
 |
sixonetonoffun

|
Posted:
Sun Jan 23, 2005 11:47 pm |
|
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

|
Posted:
Sun Jan 23, 2005 11:52 pm |
|
No, it's not in there. Where do I put it exactly? |
|
|
|
 |
sixonetonoffun

|
Posted:
Sun Jan 23, 2005 11:56 pm |
|
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

|
Posted:
Mon Jan 24, 2005 12:02 am |
|
|
|
 |
manunkind

|
Posted:
Mon Jan 24, 2005 10:06 am |
|
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

|
Posted:
Mon Jan 24, 2005 10:26 am |
|
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

|
Posted:
Mon Jan 24, 2005 10:47 am |
|
|
|
 |
manunkind

|
Posted:
Mon Jan 24, 2005 11:25 am |
|
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

|
Posted:
Mon Jan 24, 2005 11:30 am |
|
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

|
Posted:
Mon Jan 24, 2005 5:59 pm |
|
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

|
Posted:
Mon Jan 24, 2005 6:01 pm |
|
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

|
Posted:
Mon Jan 24, 2005 6:09 pm |
|
Just d/l the 7.5. They should be the originals. |
|
|
|
 |
manunkind

|
Posted:
Mon Jan 24, 2005 7:02 pm |
|
That worked Raven. Thank you so much! |
|
|
|
 |
Kelaiel
New Member


Joined: Feb 10, 2005
Posts: 3
Location: State of Denial
|
Posted:
Thu Feb 10, 2005 9:59 pm |
|
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  |
|
|
|
 |
manunkind

|
Posted:
Fri Feb 25, 2005 4:22 pm |
|
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

|
Posted:
Fri Feb 25, 2005 10:18 pm |
|
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. |
|
|
|
 |
|