Jump to content

Blank Page While Using Modules


Recommended Posts

Hi,

 

I've been working on my web page and every time I try to do something with my modules my page goes blank and it stops working. I lose everything up until my last back up... it gives me a fatal error: Fatal error: Uncaught Link to database cannot be established: SQLSTATE[HY000] [2005] Unknown MySQL server host '_DB_SERVER_' (1) thrown in /home/gotrendy/public_html/classes/db/DbPDO.php on line 58

 

Do you guys know what this could be?

 

Thank you for the help!

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

I have been having problems with my page it goes black all the time and lose whatever I have done last. I see that I have 3 warnings and I really dont know how to do the installations, these are the warnings:

 

To use Memcached, you must install the Memcache PECL extension on your server.http://www.php.net/manual/en/memcache.installation.php

 

To use APC, you must install the APC PECL extension on your server.http://php.net/manual/en/apc.installation.php

 

To use Xcache, you must install the Xcache extension on your server.http://xcache.lighttpd.net

 

I go into the websites and cant find the downloads or how to make them work!! This is way to advanced for me!

 

Please Help.

 

Thank you

Link to comment
Share on other sites

I have been having problems with my page it goes black all the time and lose whatever I have done last. I see that I have 3 warnings

 

First of all make the subject of your posts more meaningful so someone browsing forums can see what this thread is about. "Problemssssss Please help!" does not help anyone.

 

Whatever you mean by black pages, it is not related to the three warnings you see in the back office. Your store should function without MemCached/APC/Xcache. They just improve your store's performance if used.

 

Forget about those warnings for now and explain what is the problem you are seeing, preferably with an example URL.

 

Marty Shue

  • Like 1
Link to comment
Share on other sites

Ok Thank you for your reply, here is what my page says:

 

 

Fatal error: Uncaught Link to database cannot be established: SQLSTATE[HY000] [2005] Unknown MySQL server host '_DB_SERVER_' (1) thrown in /home/gotrendy/public_html/classes/db/DbPDO.php on line 58.

 

So I went to my PHP file and this is what it says:

 

public function connect()

{

try {

$this->link = $this->_getPDO($this->server, $this->user, $this->password, $this->database, 5);

} catch (PDOException $e) {

throw new PrestaShopDatabaseException(sprintf(Tools::displayError('Link to database cannot be established: %s'), $e->getMessage()));

}

 

// UTF-8 support

if ($this->link->exec('SET NAMES \'utf8\'') === false)

throw new PrestaShopDatabaseException(Tools::displayError('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.'));

 

return $this->link;

}

 

 

So, I am very new to all this, I really don't know what to do now.

 

Thank You for your help! I appreciate it very much.

  • Like 1
Link to comment
Share on other sites

Hi i'm using the version 1.5.2 and it just did it again and this is the second time there is this box message that appears.

 

So we are entering a new product, and then I go to the price tab and do a save and there is a dialog box that appears and says:

"Some tabs was not loaded correctly, do you want to reload them"

When I click OK the dialog box appears again to the infinite.

 

And suddenly the page goes blank and is blocked, I have to do a restore of my last backup so that it works.

 

Thank you so much for your precious help!

 

Maria

Link to comment
Share on other sites

  • 1 month later...

No One will help... I've been waiting for 2 months now!! But I found out that our settings.inc.php file goes suddenly blank, so you have to replace it. you have to find the php file and upload it. this is just temporary because it will erase itself again and again!

 

Hope I could help you and that someone will try to help you.

 

I let go prestashop and migrated my page to opencart! It works great and the waterer problem you have will be solved by the team!

Link to comment
Share on other sites

Hello gotrendystuff, KarmanMC did not have the same issue as yours, I'm sorry you were not able to resolve your issue. If it was similar to KamranMC's issue, you can view the [sOLVED] topic here involving the settings.inc.php file http://www.prestashop.com/forums/topic/209708-solved-emptied-settingincphp-files/page__st__20__p__1034426#entry1034426

 

Thank you for choosing PrestaShop!

Link to comment
Share on other sites

×
×
  • Create New...