PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
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 Back to top

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 Back to top

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.
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 Back to top

CZM Modules - from
Only registered users can see links on this board!
Get registered or login to the forums!


I was able to fix it and posted the fix here...
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
Doodle
Hangin' Around


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

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

Woohoo! Thanks!
View user's profile Send private message Send e-mail Visit poster's website
builtforspeed
New Member
New Member


Joined: Mar 22, 2004
Posts: 2

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

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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
tag
Regular
Regular


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

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

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 Back to top

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

...
MS Analysis
...


Find a fix here:
Only registered users can see links on this board!
Get registered or login to the forums!


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:
Only registered users can see links on this board!
Get registered or login to the forums!
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 Back to top

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
Hangin' Around


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

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

Where can one download the Certain module? LOL

You can find some general directions in english here:
Only registered users can see links on this board!
Get registered or login to the forums!
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:46 am Reply with quote Back to top

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 to the forums!
[/code]
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Doodle
Hangin' Around


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

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

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.
View user's profile Send private message Send e-mail Visit poster's website
GeekyGuy
Client


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

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

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.


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
Client


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

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

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) {
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
tag
Regular
Regular


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

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

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
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 4:27 pm Reply with quote Back to top

@ 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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
GeekyGuy
Client


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

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

MrFluffy,
Thanks for the info, I've edited my previous post.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
builtforspeed
New Member
New Member


Joined: Mar 22, 2004
Posts: 2

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

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
View user's profile Send private message
coyoweb
New Member
New Member


Joined: Oct 06, 2004
Posts: 1

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

Hello here the are a tutorial its has accepted on phpnuke.org Very Happy
Only registered users can see links on this board!
Get registered or login to the forums!



Y tambien esta disponible en español Very Happy
Only registered users can see links on this board!
Get registered or login to the forums!
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum