This is a brand new system. Accounts created with the support forum & community prior to Dec 29, 2013 no longer exist (sorry!). You will need to create a new account.

If you have a support question or comment, click the Post New Topic link below.

Database Not Connecting

 
Please log in or Create an account to post or reply to topics.
 
M Davis
246 posts
Thu Feb 15, 18
6:03 PM
I re-activated one of my websites with website d installed at markdavisphoto.com and it has the following error. The files have been installed on the server for a couple years but the site has not been active. I had a forward on the domain to another domain during this time.

When I attempt to login or access the page this is the error?

Strict Standards: date(): We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /homepages/27/d197153418/htdocs/MDP/ms_page_template.php on line 11

Strict Standards: date(): We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /homepages/27/d197153418/htdocs/MDP/ms_page_template.php on line 11

Strict Standards: Unknown: We selected 'America/New_York' for 'EST/-5.0/no DST' instead in Unknown on line 0

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /homepages/27/d197153418/htdocs/MDP/ms_inc/functions.core.php:9 Stack trace: #0 /homepages/27/d197153418/htdocs/MDP/ms_page_template.php(63): dbConnect(Array) #1 /homepages/27/d197153418/htdocs/MDP/index.php(3): require('/homepages/27/d...') #2 {main} thrown in /homepages/27/d197153418/htdocs/MDP/ms_inc/functions.core.php on line 9

When going to the admin page the following appears

Strict Standards: require_once(): We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /homepages/27/d197153418/htdocs/MDP/ms_manage/phpuploader/include_phpuploader.php on line 209

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PhpUploader has a deprecated constructor in /homepages/27/d197153418/htdocs/MDP/ms_manage/phpuploader/include_phpuploader.php on line 209

Strict Standards: session_start(): We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /homepages/27/d197153418/htdocs/MDP/ms_manage/index.php on line 4

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /homepages/27/d197153418/htdocs/MDP/ms_manage/phpuploader/include_phpuploader.php:209) in /homepages/27/d197153418/htdocs/MDP/ms_manage/index.php on line 4

Strict Standards: session_start(): We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /homepages/27/d197153418/htdocs/MDP/ms_manage/index.php on line 4

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /homepages/27/d197153418/htdocs/MDP/ms_manage/phpuploader/include_phpuploader.php:209) in /homepages/27/d197153418/htdocs/MDP/ms_manage/index.php on line 4

Strict Standards: header(): We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /homepages/27/d197153418/htdocs/MDP/ms_manage/index.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at /homepages/27/d197153418/htdocs/MDP/ms_manage/phpuploader/include_phpuploader.php:209) in /homepages/27/d197153418/htdocs/MDP/ms_manage/index.php on line 6

Strict Standards: Unknown: We selected 'America/New_York' for 'EST/-5.0/no DST' instead in Unknown on line 0

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /homepages/27/d197153418/htdocs/MDP/ms_inc/functions.core.php:9 Stack trace: #0 /homepages/27/d197153418/htdocs/MDP/ms_manage/index.php(12): dbConnect(Array) #1 {main} thrown in /homepages/27/d197153418/htdocs/MDP/ms_inc/functions.core.php on line 9

How do I correct it?

 
 
 
 
 
M. Davis
Tim - PicturesPro.com
9753 posts
admin
Fri Feb 16, 18
6:50 AM
1) Download the ms_config.php file to your computer and open it in a text editor.

2) Add the following line of code right after the <?php or <?at the beginning of the file.

date_default_timezone_set('America/Los_Angeles');

3) Save and re-upload the file.
Edited Fri Feb 16, 18 7:13 AM by Tim - PicturesPro.com
 
 
 
 
 
Tim Grissett, DIA - PicturesPro.com || My Email Address: info@picturespro.com
M Davis
246 posts
Fri Feb 16, 18
8:44 AM
Done! Here is the new error now,

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /homepages/27/d197153418/htdocs/MDP/ms_inc/functions.core.php:9 Stack trace: #0 /homepages/27/d197153418/htdocs/MDP/ms_page_template.php(52): dbConnect(Array) #1 /homepages/27/d197153418/htdocs/MDP/index.php(3): require('/homepages/27/d...') #2 {main} thrown in /homepages/27/d197153418/htdocs/MDP/ms_inc/functions.core.php on line 9
Edited Fri Feb 16, 18 8:45 AM by M Davis
 
 
 
 
 
M. Davis
Tim - PicturesPro.com
9753 posts
admin
Fri Feb 16, 18
10:42 AM
Call to undefined function mysql_connect()

That means you are probably using PHP 7 which websited is not compatible with because of the removal of the mysql_ functions.

You would need to have that site use PHP 5.
 
 
 
 
 
Tim Grissett, DIA - PicturesPro.com || My Email Address: info@picturespro.com
M Davis
246 posts
Fri Feb 16, 18
10:43 AM
The 1and1 control panel showing running MySQL 5.5!
Edited Fri Feb 16, 18 10:45 AM by M Davis
 
 
 
 
 
M. Davis
Tim - PicturesPro.com
9753 posts
admin
Fri Feb 16, 18
11:21 AM
Maybe change it to PHP 5.4. If that doesn't work contact the host.
 
 
 
 
 
Tim Grissett, DIA - PicturesPro.com || My Email Address: info@picturespro.com
wayne joe
2 posts
Fri Mar 02, 18
4:47 AM
thanks for the post
Loading more pages
Loading more pages

Sign up for email promotions.

Your information is safe with us and won't be shared.

Thank you for signing up!

 
©2003 - 2017 Grissett, LLC. All Rights Reserved.

By continuing to browse or by clicking Accept Cookies, you agree to the storing of cookies on your device necessary to provide you with the services available through our website.

    Accept   Privacy & Cookie Policy
Loading More Photos
Scroll To Top
Close Window
Loading
Close