GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Vshare , PHP5 and Fatal error: Call to a member function RecordCount() on a non-objec (https://gfy.com/showthread.php?t=866339)

Phil 11-02-2008 09:59 PM

Vshare , PHP5 and Fatal error: Call to a member function RecordCount() on a non-objec
 
If you ever get "Fatal error: Call to a member function RecordCount() on a non-object" error

delete this one line :

$sql = "select * from guest_info where guest_ip='$guest_ip' and log_date='$guest_date'";

in view_video.php

this only happens after you upgrade to PHP 5.

Iron Fist 11-02-2008 10:02 PM

Strange, my host upgraded me to PHP 5 months ago and never had a problem with vshare. Interesting.

psili 11-02-2008 10:04 PM

Glad you somehow found a workaround, but shit.... that's a shitty workaround. There's something else amiss with the Vshare code, but anyway.... At least your stuff's up again, though, right?

Phil 11-02-2008 10:12 PM

Quote:

Originally Posted by psili (Post 14994787)
Glad you somehow found a workaround, but shit.... that's a shitty workaround. There's something else amiss with the Vshare code, but anyway.... At least your stuff's up again, though, right?

you can do it by declaring db connection object. I just commented out that line. All it does is checking for visitors IP if he was on the site before...

Phil 11-02-2008 10:13 PM

Quote:

Originally Posted by sharphead (Post 14994784)
Strange, my host upgraded me to PHP 5 months ago and never had a problem with vshare. Interesting.

oops, sorry bro. ClipShare... I bet its about the same code in bith tho.. I saw both of them and they are almost identical.


All times are GMT -7. The time now is 11:54 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123