| Author |
Message |
Trubador
Beginner


Joined: Nov 17, 2004 Posts: 5
|
Posted: Fri Dec 31, 2004 10:17 am Post subject: Fatal error: Call to a member function on a non-object |
|
|
I wonder if someone can help me with this little problem.
Everything seems to work fine with the gallery. Its integrated without a hitch into PHPNuke, (although it did take this noob ages to configure it), Admin, uploads edit everything work fine. This was done about a month ago.
As of 3 days ago, for some reason, when I access the gallery through the module, everything is displayed fine. Access an album, all thumbs are displayed fine.
If I click on a thumbnail, or its resize link below it I get this error:
Code: › Error: Requested index [0] out of bounds [16]
Fatal error: Call to a member function on a non-object in /homepages/11/d93920534/htdocs/html/modules/gallery/classes/Album.php on line 1258
The line reads:
1256 function getPhotoId($index) {
1257 $photo = $this->getPhoto($index);
1258 return $photo->getPhotoId();
I've accessed the config wizard and looked at or changed things, (now reverted back to when I began) with no success.
However, at the end of the config wizard, I click the link 'Enter the Gallery'
a full Gallery page is displayed. If I click on a thumbnail in here it displays the picture fine.
I'm not sure but it seems to be a PhpNuke integration problem.
Has anyone any ideas???
Thanks in advance
Trub
----
Linux infong 2.4 #1 SMP
Gallery version: 1.4.4-pl4
Apache version:
PHP version: 4.3.10 - PhPnuke 7.4
Graphics Toolkit: jpegtran
Operating system: XP
Web browser/version (if applicable): IE6
The CONFIG lines from the top of your block file(s): ??? |
|
| Back to top |
|
|
AdBot
|
| Post subject: Fatal error: Call to a member function on a non-object |
|
|
|
|
|
| Back to top |
|
 |
kuebel
Beginner


Joined: Oct 26, 2004 Posts: 3
|
Posted: Sat Jan 01, 2005 11:52 am Post subject: Re: Fatal error: Call to a member function on a non-object |
|
|
hi,
did you install nuke sentinel lately? my gallery behaves the same way you described after i installed the sentinel. until now i've found no other solution than disable the sentinel... |
|
| Back to top |
|
|
Dove
Beginner


Joined: Sep 10, 2004 Posts: 10
|
Posted: Sat Jan 01, 2005 3:04 pm Post subject: Re: Fatal error: Call to a member function on a non-object |
|
|
This is happening to me too after upgrading Sentinel 2.11 to 2.13.
So far putting back the old 2.11 /includes/sentinel.php or even the
2.12 /includes/sentinel.php fixes it (not sure how this will effect Sentinel).
My same error:
Code: › Error: Requested index [0] out of bounds [19]
Fatal error: Call to a member function on a non-object in /mywebsite.com/modules/gallery/classes/Album.php on line 1258 |
|
| Back to top |
|
|
Dove
Beginner


Joined: Sep 10, 2004 Posts: 10
|
Posted: Sat Jan 01, 2005 4:40 pm Post subject: Re: Fatal error: Call to a member function on a non-object |
|
|
I have narrowed it down to The Sanity worm code at the
beginning of the /includes/sentinel.php. Editing out those
lines with // at front fixes it for now.
Code: ›
// Stop Santy Worm
//$bad_uri_content="rush,highlight,perl,chr(,pillar,visualcoder,sess_";
//global $REQUEST_URI;
//$tmp=explode(",",$bad_uri_content);
//while(list($id,$uri_content)=each($tmp)) {
// if (strpos($REQUEST_URI,$uri_content)) {
// die("Illegal Content");
// }
//}
Lines 20-28  |
|
| Back to top |
|
|
Trubador
Beginner


Joined: Nov 17, 2004 Posts: 5
|
Posted: Sat Jan 01, 2005 5:58 pm Post subject: Re: Fatal error: Call to a member function on a non-object |
|
|
Cheers all for the response.
Yes I've just upgraded Sentinal from 2.1.2 to 2.1.3
Dove, is it wise to disable the santy worm blocking script, with light of the PhP vunerability?. I was getting 100+ emails a day with the worm attacks.
Cheers
Trub |
|
| Back to top |
|
|
Dove
Beginner


Joined: Sep 10, 2004 Posts: 10
|
Posted: Sun Jan 02, 2005 5:39 am Post subject: Re: Fatal error: Call to a member function on a non-object |
|
|
It was banning them with version 2.12 (before that code), but
if your able to do the .htaccess thing posted at Raven's site,
I guess you won't need it.
I would guess it's your call, either the .htaccess code, keep this code,
or settle for #$$#$# emails.
I have a webhost running Windows IIS, and am not able to use
to use the .htaccess, so this code for me is great. /me crosses my
fingers
Take Care  |
|
| Back to top |
|
|
kuebel
Beginner


Joined: Oct 26, 2004 Posts: 3
|
Posted: Sun Jan 02, 2005 6:31 am Post subject: Re: Fatal error: Call to a member function on a non-object |
|
|
| a thread with the same topic can be found here [ravenphpscripts.com]. they offer a solution to block the santy worm with a .htaccess file so its safe to disable the lines in the /includes/sentinel.php. works fine for me... |
|
| Back to top |
|
|
Trubador
Beginner


Joined: Nov 17, 2004 Posts: 5
|
Posted: Tue Jan 04, 2005 9:28 am Post subject: Re: Fatal error: Call to a member function on a non-object |
|
|
Yer, my webhost supports .htaccess, but gives a login every time you access the site. Im having problems configuring at the mo.
Good news is that the emails/bans have dropped over the past few days.
Thanks all for the responses.
TTFN
Trub |
|
| Back to top |
|
|
|
|
|
|
|