Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mysidia Adoptables Official Announcement (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=2)
-   -   Mysidia Adoptables v1.3.1[Security Release] (http://www.mysidiaadoptables.com/forum/showthread.php?t=3571)

Hall of Famer 04-08-2012 07:19 PM

Well copy/paste the functions_forums to your functions directory, and look into the script files login.php and register.php.

SilverDragonTears 04-08-2012 07:23 PM

I'm getting this now when I try to login

Fatal error: Call to undefined method PDO::select() in /home/taleofdr/public_html/login.php on line 63

Hall of Famer 04-08-2012 07:31 PM

Oh this is because you are missing the database class. Copy/paste the class_database.php and functions.php files to your site and it should work. Note you do not have to use select() or other database methods introduced in Mys v1.3.1, the old $adopts->query() and $stmt->fetchObject() still works.

SilverDragonTears 04-08-2012 07:35 PM

Could not connect to database, the following error has occurred:
SQLSTATE[HY000] [2005] Unknown MySQL server host 'DBHOST' (1)

Did you make major changes or something? It's hard for me to upgrade b.c I have so many customizations. Now I'm all screwed up.

Hall of Famer 04-08-2012 07:39 PM

Yeah I did, the config file now uses PHP constants instead of variables. The new database class is being used everywhere. I can help you get rid of the constants though, and then it should be backward-compatible with Mys v1.3.0.

SilverDragonTears 04-08-2012 07:39 PM

Ok just tell me what to do...

Hall of Famer 04-08-2012 07:48 PM

Do you have the old functions file? If so, just replace this line below:

PHP Code:

$dsn "mysql:host={$dbhost};dbname={$dbname}";
$adopts = new PDO($dsn$dbuser$dbpass); 

with the following codes:
PHP Code:

$adopts = new Database($dbname$dbhost$dbuser$dbpass$prefix); 


SilverDragonTears 04-08-2012 07:49 PM

No, you told me to replace it with the new one.

Hall of Famer 04-08-2012 08:11 PM

umm so you dont have the old functions.php file anymore? If so, download Mys v1.3.0 again and use that one.

SilverDragonTears 04-08-2012 08:18 PM

I have my old one saved but when I did what you told me to do I get this:

Fatal error: Class 'Database' not found in /home/taleofdr/public_html/functions/functions.php on line 10


All times are GMT -5. The time now is 11:47 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.