Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Tutorials and Tips

Notices

Reply
 
Thread Tools Display Modes
  #31  
Old 02-27-2016, 10:40 PM
Kasandra Kasandra is offline
Member
 
Join Date: Feb 2016
Posts: 11
Gender: Female
Credits: 926
Kasandra is on a distinguished road
Default

I appreciate you trying to help me out here. I still cant seem to get anything to work correctly.

localhost - shows nothing.
localhost:8080 - shows what its supposed to.

I tried to remove the 8080 port, but it says port 80 is used by something else and I can't find what it is.


Code:
NameVirtualHost *:8080



<VirtualHost *:8080>
       DocumentRoot "C:/xampp/htdocs/"
       ServerName localhost
</VirtualHost>


<VirtualHost *:8080>
	DocumentRoot "C:/xampp/htdocs/Mysidia"
	ServerName mysidia.dev
<Directory "C:/xampp/htdocs/Mysidia">
    AllowOverride All
	Require all Granted
</Directory>
</VirtualHost>
Code:
	127.0.0.1      localhost
#	127.0.0.1       mysidia.dev
	127.0.0.1:8080       mysidia.dev
I've got both here, just # them out and tried them both - neither seems to work but I'll just paste both.

Code:
<?php
//Mysidia Adoptables Site Configuration File

define('DBHOST', '127.0.0.1:8080');             //DB Hostname
define('DBUSER', 'root');             //DB Username
define('DBPASS', '1234ABC');             //DB Password
define('DBNAME', 'mysite');             //Your database name
define('DOMAIN', 'mysidia.dev');             //Your domain name (No http, www or . )
define('SCRIPTPATH', '/Mysidia');     //The folder you installed this script in
define('PREFIX', 'adopts_');
?>

Is there something I missed?


//I did seem to get this error while trying to access the site through various urls such as "localhost:8080/Mysidia"

Code:
Warning: PDO::__construct(): MySQL server has gone away in C:\xampp\htdocs\Mysidia\classes\class_database.php on line 57

Warning: PDO::__construct(): Error while reading greeting packet. PID=13748 in C:\xampp\htdocs\Mysidia\classes\class_database.php on line 57

Warning: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2006] MySQL server has gone away' in C:\xampp\htdocs\Mysidia\classes\class_database.php:57 Stack trace: #0 C:\xampp\htdocs\Mysidia\classes\class_database.php(57): PDO->__construct('mysql:host=127....', 'root', '1234ABC') #1 C:\xampp\htdocs\Mysidia\classes\class_mysidia.php(220): Database->__construct('mysite', '127.0.0.1:8080', 'root', '1234ABC', 'adopts_') #2 C:\xampp\htdocs\Mysidia\classes\class_mysidia.php(164): Mysidia->loadDb() #3 C:\xampp\htdocs\Mysidia\classes\class_initializer.php(109): Mysidia->__construct() #4 C:\xampp\htdocs\Mysidia\classes\class_initializer.php(45): Initializer->initialize() #5 C:\xampp\htdocs\Mysidia\index.php(68): Initializer->__construct() #6 C:\xampp\htdocs\Mysidia\index.php(78): IndexController::main() #7 {main} thrown in C:\xampp\htdocs\Mysidia\classes\class_database.php on line 57

Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\Mysidia\classes\class_database.php on line 57

Last edited by Kasandra; 02-27-2016 at 10:48 PM.
Reply With Quote
  #32  
Old 02-27-2016, 11:51 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 109,866
Kyttias is on a distinguished road
Default

Oh, ah... set script path to nothing.
PHP Code:
define('SCRIPTPATH''');     //The folder you installed this script in 
It should be looking for mysidia.dev, not mysidia.dev/Mysidia now.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #33  
Old 03-02-2016, 08:35 PM
Kasandra Kasandra is offline
Member
 
Join Date: Feb 2016
Posts: 11
Gender: Female
Credits: 926
Kasandra is on a distinguished road
Default

Ha, you would not believe this, but there isn't an issue with those files. I've been at this for the last few days, sifting through tens of webpages to try and fix this problem. I've managed to return Xampp to port 80. YES!

Xampp finally says that it is running perfectly.

The only issue now..

I get this when I attempt to open "mysidia.dev"

Code:
Could not connect to database, the following error has occurred: 
SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.
Both Apache and MySQL are running, no porblems (or so Xampp says)... so now I've hit yet another brick wall.

EDIT::
OMG I fixed it. Thank you so much Kyttias for digging through this and helping me out. I really appreciate it. <3

Last edited by Kasandra; 03-02-2016 at 08:39 PM.
Reply With Quote
  #34  
Old 03-02-2016, 09:17 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 109,866
Kyttias is on a distinguished road
Default

I'm glad you finally got it all working! :3
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #35  
Old 09-25-2016, 03:06 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 21,675
NobodysHero is on a distinguished road
Default

I was playing around with the idea of making some themes, but I wanted to test them on an unmodded install. Downloaded the program, everything seemed fine, but I'm getting this:

[25-Sep-2016 19:55:56 UTC] PHP Fatal error: Uncaught exception 'LanguageException' with message 'Language var nonexist does not exist.' in C:\wamp64\www\classes\class_language.php:68
Stack trace:
#0 C:\wamp64\www\classes\class_customdocument.php(82) : Language->__get('nonexist')
#1 C:\wamp64\www\classes\class_frame.php(135): CustomDocument->__construct('index')
#2 C:\wamp64\www\view\indexview.php(7): Frame->getDocument('index')
#3 C:\wamp64\www\classes\class_frontcontroller.php(10 0): IndexView->index()
#4 C:\wamp64\www\index.php(74): FrontController->render()
#5 C:\wamp64\www\index.php(78): IndexController::main()
#6 {main}
thrown in C:\wamp64\www\classes\class_language.php on line 68

Also, it isn't adding me as a user to the database, but it makes the tables and inserts the information on the "settings" tables. So... I don't know what that's about either.
Reply With Quote
  #36  
Old 09-26-2016, 09:36 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 109,866
Kyttias is on a distinguished road
Default

At this point you'll have to specify what version of WAMP you installed because WAMP will keep updating it's PHP version and Mysidia is now outdated in the world of PHP and will not run on the latest versions. This is going to be a real problem across the board at hosting companies in a few short years so I hope that Mysidia releases its next version soon.

Anyway, make sure you get WAMP with a PHP of 5.4, 5.6, or 5.8, and not PHP 7.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #37  
Old 09-30-2016, 12:29 AM
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: 482,097
Hall of Famer is on a distinguished road
Default

There is no PHP 5.8 though, PHP 5.x only goes up to 5.6. If I recall correctly, WAMP's default version is PHP 5.6, though I can be mistaken. But anyway, PHP 7 compatibility is something I am thinking about for version 1.4.0, it will require a considerable change to the core script though.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #38  
Old 04-21-2017, 05:58 AM
KatFennec's Avatar
KatFennec KatFennec is offline
Member
 
Join Date: Apr 2017
Posts: 57
Gender: Female
Credits: 9,343
KatFennec is on a distinguished road
Default

Quote:
Originally Posted by Kasandra View Post
Ha, you would not believe this, but there isn't an issue with those files. I've been at this for the last few days, sifting through tens of webpages to try and fix this problem. I've managed to return Xampp to port 80. YES!

Xampp finally says that it is running perfectly.

The only issue now..

I get this when I attempt to open "mysidia.dev"

Code:
Could not connect to database, the following error has occurred: 
SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.
Both Apache and MySQL are running, no porblems (or so Xampp says)... so now I've hit yet another brick wall.

EDIT::
OMG I fixed it. Thank you so much Kyttias for digging through this and helping me out. I really appreciate it. <3


I've been having this exact same issue, so I'd love to know what you guys figured out...
EDIT: and for posterity, it seems the solution is to download WAMP 2.5 from sourceforge, then follow the instructions on here. it seems to be working properly now.

Last edited by KatFennec; 04-21-2017 at 06:19 AM. Reason: figured it out
Reply With Quote
  #39  
Old 04-21-2017, 01:29 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: 482,097
Hall of Famer is on a distinguished road
Default

Well its important to note that Mysidia v1.3.x isnt compatible with PHP 7, this will change in version 1.4 for sure but to continue with version 1.3, you have to use PHP 5.3 - 5.6.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #40  
Old 10-07-2017, 11:58 PM
Riverspell Riverspell is offline
Member
 
Join Date: Oct 2017
Posts: 8
Gender: Female
Credits: 900
Riverspell is on a distinguished road
Default

Okay, maybe I'm insane or I'm a lot more of a newb than I thought. But I'm stuck and have now spent a hour trying to fix this. I've gotten all the way to the Installing Mysidia Adoptables section. Accessing localhost/install gives me a 404 error. It says the requested URL /install was not found on this server.

Browsing through other articles (including setting up the script through an actual host) shows people pointing at the config file. The one this tutorial has us change from "config_adopts" to "config". My config file is empty. Is it supposed to be? I redownloaded the files and config_adopts is empty. I'm probably missing something obvious but help would be appreciated!
Reply With Quote
Reply

Tags
hosting, wamp


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
To Non-Coders... an itty-bitty guide ChibiMaestro Tutorials and Tips 2 04-20-2018 06:33 PM
Help setting up my site Taogoat Questions and Supports 2 03-08-2014 10:46 AM
Errors with WAMP MikiHeart Questions and Supports 4 11-06-2013 09:12 PM
Need help setting Mysidia up on Uniform Server Hedgen Questions and Supports 0 03-16-2013 05:15 PM
More help for my guide. Killgore Questions and Supports 3 03-03-2009 06:16 PM


All times are GMT -5. The time now is 02:00 AM.

Currently Active Users: 855 (0 members and 855 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