| Author |
Message |
kswiz
Beginner


Joined: Jun 19, 2003 Posts: 3
|
Posted: Fri Jun 20, 2003 5:24 pm Post subject: Updated Albums for Gallery: resultset error |
|
|
I have installed the Updated Albums block for Gallery under phpNuke 6.7 (server is IIS). When I view the site, the block dies and the following error message displays:
Fatal error: Cannot redeclare class resultset in
e:\[PathToPhpnukeHome]\includes\sql_layer.php on line 37
Any suggestions for correcting this are appreciated. Thanks,
Martin |
|
| Back to top |
|
|
AdBot
|
| Post subject: Updated Albums for Gallery: resultset error |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Fri Jun 20, 2003 7:14 pm Post subject: Re: Updated Albums for Gallery: resultset error |
|
|
what version of PHP are you using?
make sure that line 10 of your block-updatedGallery.php file reads exactly as follows:Code: › require_once($WEB_ROOT."includes/sql_layer.php");
the vital item there is the "require_once" part. that prevents multiple redeclarations of the same chunk of code. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Fri Jun 20, 2003 7:17 pm Post subject: |
|
|
A HA...from http://www.php.net/require_once :
Quote: › Note: Be aware, that the behaviour of require_once() and include_once() may not be what you expect on a non case sensitive operating system (such as Windows). Example 12-8. require_once() is case sensitive
require_once("a.php"); // this will include a.php
require_once("A.php"); // this will include a.php again on Windows!
this may be your problem. some other block may have it included, but with different casing on the letters. |
|
| Back to top |
|
|
kswiz
Beginner


Joined: Jun 19, 2003 Posts: 3
|
Posted: Sat Jun 21, 2003 2:51 pm Post subject: |
|
|
>>what version of PHP are you using?
4.3.2
>>make sure that line 10 of your block-updatedGallery.php file reads exactly as >>follows: require_once($WEB_ROOT."includes/sql_layer.php");
It does.
>>some other block may have it included, but with different casing on the letters.
In my PhpNuke install only two files call sql_layer.php: block-updatedGallery.php AND Nuke's mainfile.php. I commented out the appropriate require_once line in updatedGallery and the block now executes without an error (though the block says 'Log in to see updated albums' even though the block is set so it is visible to All Users-- guess there is another problem I need to explore). Thanks for the help, and making this and the Random block available. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sat Jun 21, 2003 3:51 pm Post subject: Re: Updated Albums for Gallery: resultset error |
|
|
| it's supposed to say "log in.." when visible to all users (that's how i have it set up on this site). once the user logs in, they will see a list of the updated albums, based on their last login time. |
|
| Back to top |
|
|
kswiz
Beginner


Joined: Jun 19, 2003 Posts: 3
|
Posted: Sun Jun 22, 2003 12:05 am Post subject: |
|
|
| It dawned on me about an hour after my last post that the block was supposed to say 'login...' That's why we adjust the seconds when installing. Thanks again for the help with require_once. |
|
| Back to top |
|
|
brettlee
Novice


Joined: Jul 15, 2010 Posts: 23
|
Posted: Fri Jul 23, 2010 1:21 am Post subject: Re: Updated Albums for Gallery: resultset error |
|
|
| The Wild Side Story plot, later in Europe purported to be “from the wildest side of the trans-Atlantic West”, is mainly about “Bernardo” being visited by problematic little brother, José “Mariapass4sure 646-230 [pass4sure.org] Gonzalez, who cross-dresses convincingly to go job-hunting. With boyfriend-owner “Betty-Sue” busy smoking cigarettes,pass4sure PW0-104 [pass4sure.org] “Tony” can go gaga over “Maria” and does so without taking a second or even a careful look. A lovesick calamity of abandon unfolds amid pick-pockets, male and female chauvinist pigs, false eyelashes, murder, initially misplaced false boobs, and all is summed up with what amounts to a hippie hypocrisy revival meeting pass4sure 350-040 [pass4sure.org]at the end (see below). Anita” is portrayed as an extremely dangerous and powerful woman so nobody dares tell her that the reds in her satin skirt and ruffled top clash monstrously. Since she won’t let any real women get close to her man, her girlfriends are two tall, muscular drag queens with hairy armpits, whose motivations for cross-dressing remain unclear pass4sure JN0-350 [pass4sure.org](one of them was actually portrayed two times by a recent bank robber, unknown as such to the production). The names of this pair are “Consuelo” and “Obvióla”. They have been reviewed as the "riot act of the show"[9]. Each in a stolen nuns' habit, they complain about new competitor “Maria” in a Sound of Music song. |
|
| Back to top |
|
|
|
|
|
|
|