Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Community Board > Mysidia Adoptables Official Announcement

Notices

Closed Thread
 
Thread Tools Display Modes
  #21  
Old 04-08-2012, 07:19 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 481,410
Hall of Famer is on a distinguished road
Default

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


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #22  
Old 04-08-2012, 07:23 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 95,942
SilverDragonTears is on a distinguished road
Default

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
__________________

Check out SilvaTales
  #23  
Old 04-08-2012, 07:31 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 481,410
Hall of Famer is on a distinguished road
Default

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.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #24  
Old 04-08-2012, 07:35 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 95,942
SilverDragonTears is on a distinguished road
Default

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.
__________________

Check out SilvaTales
  #25  
Old 04-08-2012, 07:39 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 481,410
Hall of Famer is on a distinguished road
Default

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.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #26  
Old 04-08-2012, 07:39 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 95,942
SilverDragonTears is on a distinguished road
Default

Ok just tell me what to do...
__________________

Check out SilvaTales
  #27  
Old 04-08-2012, 07:48 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 481,410
Hall of Famer is on a distinguished road
Default

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); 
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #28  
Old 04-08-2012, 07:49 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 95,942
SilverDragonTears is on a distinguished road
Default

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

Check out SilvaTales
  #29  
Old 04-08-2012, 08:11 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 481,410
Hall of Famer is on a distinguished road
Default

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


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
  #30  
Old 04-08-2012, 08:18 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 95,942
SilverDragonTears is on a distinguished road
Default

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
__________________

Check out SilvaTales
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysidia Adoptables v1.3.3[Security Release] Hall of Famer Mysidia Adoptables Official Announcement 122 05-18-2013 04:02 PM
Mysidia Adoptables v1.3.0[Security Release] Hall of Famer Mysidia Adoptables Official Announcement 180 04-01-2012 10:16 PM
Mysidia Adoptables v1.2.0[Security Release] Hall of Famer Mysidia Adoptables Official Announcement 21 03-22-2011 04:13 PM
Mysidia Adoptables v1.1.4[Security Release] Hall of Famer Mysidia Adoptables Official Announcement 15 01-28-2011 11:48 AM
Mysidia Adoptables v1.1.3[Security Release] Hall of Famer Mysidia Adoptables Official Announcement 27 01-26-2011 02:59 PM


All times are GMT -5. The time now is 10:21 AM.

Currently Active Users: 834 (0 members and 834 guests)
Threads: 4,081, Posts: 32,029, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636