error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Warning: require(C:/xampp/htdocs//inc/smarty/Smarty.class.php): failed to open stream: No such file or directory in C:\xampp\htdocs\Mysidia\classes\class_mysidia.php on line 326
Fatal error: require(): Failed opening required 'C:/xampp/htdocs//inc/smarty/Smarty.class.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\Mysidia\classes\class_mysidia.php on line 326
Always access your site with 127.0.0.1, not localhost - else you'll have issues logging in/staying logged in. So go ahead and bookmark 127.0.0.1.
<?php
//Mysidia Adoptables Site Configuration File
define('DBHOST', '127.0.0.1'); //DB Hostname
define('DBUSER', 'root'); //DB Username
define('DBPASS', '*****'); //DB Password
define('DBNAME', 'mysite'); //Your database name
define('DOMAIN', '127.0.0.1:8080'); //Your domain name (No http, www or . )
define('SCRIPTPATH', '/Mysidia'); //The folder you installed this script in
define('PREFIX', 'adopts_');
?>
127.0.0.1 localhost
127.0.0.1 www.mysidia.localhost
NameVirtualHost *:8080
<VirtualHost *:8080>
DocumentRoot "C:/xampp/htdocs/"
ServerName localhost
</VirtualHost>
<VirtualHost *:8080>
DocumentRoot "C:/xampp/htdocs/Mysidia"
ServerName mysidia.localhost
ServerAlias www.mysidia.localhost
<Directory "C:/xampp/htdocs/Mysidia">
AllowOverride All
Require all Granted
</Directory>
</VirtualHost>
<Directory C:/Users/Kyttias/Dropbox/WAMP>
Order Deny,Allow
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot "C:\Users\Kyttias\Dropbox\WAMP\Sanctuary"
ServerName sanctuary.dev
ServerAdmin kyttias@gmail.com
ErrorLog "logs/Sanctuary-error.log"
CustomLog "logs/Sanctuary-access.log" common
</VirtualHost>
127.0.0.1 localhost
127.0.0.1 sanctuary.dev
define('DOMAIN', 'sanctuary.dev'); //Your domain name (No http, www or . )
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>
127.0.0.1 localhost
# 127.0.0.1 mysidia.dev
127.0.0.1:8080 mysidia.dev
<?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_');
?>
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
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.
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