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.5
Author Message
SmackDaddy
Involved
Involved



Joined: Jun 02, 2004
Posts: 268
Location: Englewood, OH

PostPosted: Fri Sep 03, 2004 3:34 pm Reply with quote

Well, I am intending this post to be a "what's what" of modules that people find are broken as a result of the recent modularization of PHPNuke 7.5.

As Raven as pointed out in another thread, the following code:

Code:
// Administrators Table modification 

$db->sql_query("ALTER TABLE nuke_authors DROP radminarticle, DROP radmintopic, DROP radminuser, DROP radminsurvey, DROP radminlink , DROP radminfaq, DROP radmindownload, DROP radminreviews, DROP radminnewsletter, DROP radminforum, DROP radmincontent, DROP radminency");


...has the possibility to break modules that rely on those variables. If you find a module has been "broken" as a result, please first double-check the issue for yourself (before posting), and then list the module and if possible anything that can be done as a temporary work-around/fix until a solution is achieved...

I'll try and keep this list as update to date as possible.

(updated: 3 Sep 04)
MODULES AFFECTED BY 7.5:
(none reported as of yet)

Raven, if possible, could you place this as a sticky? I am unable....thank you.
 
View user's profile Send private message Send e-mail Visit poster's website
Doodle
Hangin' Around



Joined: Jan 26, 2004
Posts: 46
Location: 127.0.0.1

PostPosted: Fri Sep 03, 2004 3:56 pm Reply with quote

I got a reply from Warrick regarding AutoTheme functioning with 7.5:

Quote:

I'm not aware of any problems at the moment, but then I'm not the developer of the module. One thing I can say is that the developer works pretty quickly to fix compatibility issues when they occasionally arise.


I'm going to fire up a test site and see what happens over the weekend.

_________________
Independent Network Solutions
www.insglobal.net
www.indnet.ca
www.joombug.net 
View user's profile Send private message Send e-mail Visit poster's website
JRSweets
Worker
Worker



Joined: Aug 06, 2004
Posts: 192

PostPosted: Fri Sep 03, 2004 4:11 pm Reply with quote

CZM Modules - from http://codezwiz.com

I was able to fix it and posted the fix here...
http://www.codezwiz.com/ftopicp-28617.html#28617
 
View user's profile Send private message
Doodle







PostPosted: Fri Sep 03, 2004 4:17 pm Reply with quote

Woohoo! Thanks!
 
builtforspeed
New Member
New Member



Joined: Mar 22, 2004
Posts: 2

PostPosted: Sat Sep 11, 2004 7:27 pm Reply with quote

I am running Nuke 7.5 and I am experiencing the following problems with Admin modules:

Archives
Edit Users
NSN Edit News Ads
Ephemerids
MS Analysis
NukeWin V1.4

The error I am receiving is:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in sql_layer.php on line 286
Unknown column 'radminuser' in 'field list'Access Denied

Some modules only error with "Access Denied" and not the full error code. Several other modules work, but they still strangly enough display the "Access Denied" in the theme at the top left of the screen?

Any assistance would be very much appreciated.

Thanks,

Cory
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Sep 12, 2004 1:36 am Reply with quote

I have responded to Cory via email and explained that it's due to the table alteration of the authors table in most cases.
 
View user's profile Send private message
tag
Regular
Regular



Joined: Dec 18, 2003
Posts: 53
Location: Worldwide

PostPosted: Sun Sep 12, 2004 1:45 am Reply with quote

Thank you raven for that,

is there a way to fix it?
 
View user's profile Send private message Visit poster's website
MrFluffy
Hangin' Around



Joined: Jun 24, 2004
Posts: 28
Location: Berlin

PostPosted: Sun Sep 12, 2004 3:14 am Reply with quote

builtforspeed wrote:
I am running Nuke 7.5 and I am experiencing the following problems with Admin modules:

...
MS Analysis
...


Find a fix here:
http://www.ayhsel.de/ftopict-134.html

Quote:
Several other modules work, but they still strangly enough display the "Access Denied" in the theme at the top left of the screen?


List of files to delete to avoid the access denied on top of your admin section:
http://www.ayhsel.de/ftopict-137.html

_________________
cu,
MrFluffy

Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
jbsarma
New Member
New Member



Joined: Jan 23, 2004
Posts: 24

PostPosted: Sun Sep 12, 2004 9:32 am Reply with quote

Quote:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/assamch/public_html/travel/includes/sql_layer.php on line 286
Access Denied
I too get this error when I click certain module in the admin panel e.g., content. The error appears at the top of the header but otherwise everything seems OK. I just upgraded from Nuke7.8 to 7.5.

Is there a fix available? Please enlighten.[/quote]
 
View user's profile Send private message
MrFluffy







PostPosted: Sun Sep 12, 2004 9:40 am Reply with quote

Where can one download the Certain module? LOL

You can find some general directions in english here:
http://www.nukefixes.com/ftopict-931.html
 
jbsarma







PostPosted: Sun Sep 12, 2004 9:46 am Reply with quote

The problem is fixed by deleting the redundant files in the admin module as listed Only registered users can see links on this board! Get registered or login![/code]
 
Raven







PostPosted: Sun Sep 12, 2004 9:49 am Reply with quote

That error is a result of not being able to connect to a table. This can be because

A) MySQL is unreachable
B) The table does not exist or is corrupted
C) The table structure has changed and the sql that accesses it is not in sync

C is the most likely since the nuke_authors table no longer contains most of the columns, Turn $sql_debug on and find out which table is being called and what column is missing. Then correct the sql call accordingly.
 
Doodle







PostPosted: Sun Sep 12, 2004 10:58 am Reply with quote

By the way I tested 7.5 with Autotheme Lite 0.8 and it seems to work. I haven't fully tested the blocks admin functions but so far so good.
 
GeekyGuy
Client



Joined: Jun 03, 2004
Posts: 302
Location: Huber Heights Ohio

PostPosted: Sun Sep 12, 2004 1:19 pm Reply with quote

I think I have a fix for the Ephimerids block.
Add this to your /language/lang-XXXX.php (if it is not already there)
Code:
define("_EPHEMERIDS","Ephemerids");

define("_ONEDAY","One Day like Today...");

Add this to your /admin/language/lang-XXXX.php (if it is not already there)
Code:
define("_EPHEMADMIN","Ephemerids Administration");

define("_ADDEPHEM","Add a New Ephemerid");
define("_EPHEMDESC","Ephemerid Description");
define("_EPHEMMAINT","Ephemerid Maintenance (Edit/Delete):");
define("_EPHEMEDIT","Edit Ephemerids");

Open /admin/modules/ephemerids.php and find this code:
Code:
$row = $db->sql_fetchrow($db->sql_query("SELECT radminephem, radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));

if (($row['radminephem'] == 1) OR ($row['radminsuper'] == 1)) {

And change it to:
Code:
$row = $db->sql_fetchrow($db->sql_query("SELECT name, radminsuper FROM ".$prefix."_authors WHERE aid='$aid'"));

$admins = explode(",", $row['admins']);
$auth_user = 0;
for ($i=0; $i < sizeof($admins); $i++) {
    if ($row['name'] == "$admins[$i]") {
        $auth_user = 1;
    }
}
if ($row['radminsuper'] == 1 || $auth_user == 1) {

Since I am not a programmer, I just took a fix for another module and hacked on it until it worked for the Ephemerids.

_________________
"The Daytona 500 is ours! We won it, we won it, we won it!", Dale Earnhardt, February 15th, 1998, Daytona 500

Last edited by GeekyGuy on Sun Sep 12, 2004 4:33 pm; edited 1 time in total 
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
GeekyGuy







PostPosted: Sun Sep 12, 2004 1:46 pm Reply with quote

I think I have also fixed the JAG Virus block.
In /admins/module/JAG_Virus_Alerts.php, find all this code:
Code:
$Q01 = "SELECT radminency, radminsuper 

                FROM ".$prefix."_authors
                WHERE aid = '$aid'";
$R01 =  $db -> sql_query($Q01) or die("Bad Q01:".mysql_error());
list($radminency, $radminsuper) = sql_fetch_row($R01);

if (($radminency==1) OR ($radminsuper==1))
        {

And change it to:
Code:
$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);

list($radminsuper) = sql_fetch_row($result, $dbi);
if ($radminsuper==1) {
 
tag







PostPosted: Sun Sep 12, 2004 4:18 pm Reply with quote

Quote:

$row = $db->sql_fetchrow($db->sql_query("SELECT name, radminsuper FROM ".$prefix."_authors WHERE aid='$aname'"));
$admins = explode(",", $row['admins']);
$auth_user = 0;
for ($i=0; $i < sizeof($admins); $i++) {
if ($row['name'] == "$admins[$i]") {
$auth_user = 1;
}
}
if ($row['radminsuper'] == 1 || $auth_user == 1) {


This works for most fo the admin blocks, some will need you to define the stuff in them in admin/language

Thanks for your help

Still cant get Submit news to show up anywhere tho. "submit.php
 
MrFluffy







PostPosted: Sun Sep 12, 2004 4:27 pm Reply with quote

@ GeekGuy and tag

You're making a fault there, you adapted my MS_Analysis fix, which is generally quite right. The problem is that the $aname variable is something special to this module.

Please use $aid for 'normal' modules instead.
 
GeekyGuy







PostPosted: Sun Sep 12, 2004 4:32 pm Reply with quote

MrFluffy,
Thanks for the info, I've edited my previous post.
 
builtforspeed







PostPosted: Sun Sep 12, 2004 9:41 pm Reply with quote

This code above worked for all of the modules access through admin that were previously broken.
All I seem to have to do, is the language part now. I also used it with a new version of "User Administration" that we upgraded too. Users can edit there account information fine from the My Account options of the site. But, now I am receiving the following error when attempting to use any of the administrative options except for config users in the user edit module of admin (i.e. add new users, create field, active users, regular users, etc.)

Warning: Division by zero in functions.php on line 261

This user administration was designed by Bob Marion nukescripts.net, and the current owner as indicated in the credits is André V Escudero of phpnuke.org.br which is in brazilian language so I can't understand anything. Question

Any assistance would be greatly appreciated. Thanks for assisting me along this far! Very Happy

- Cory
 
coyoweb
New Member
New Member



Joined: Oct 06, 2004
Posts: 1

PostPosted: Wed Oct 06, 2004 1:26 pm Reply with quote

Hello here the are a tutorial its has accepted on phpnuke.org Very Happy

http://coyoweb.shyper.com/modules.php?name=Forums&file=viewtopic&p=36#36


Y tambien esta disponible en español Very Happy

http://coyoweb.shyper.com/modules.php?name=Forums&file=viewtopic&p=36#36
 
View user's profile Send private message
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.5

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 ©