Jump to content

eozsoy

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Activity
    User/Merchant

eozsoy's Achievements

Newbie

Newbie (1/14)

2

Reputation

1

Community Answers

  1. This subfolder was created by me: when I make modifications to a file I put a copy of the original file into a subfolder. So this tools.php was from prestashop version 1.6.0.14 and it does not have safeDefine function. You mentioned that you deleted "classes/classes/tools.php". As far as I know you shouldn't have another classes folder under Prestashop classes folder. After you deleted tools.php, now currency.php is causing the problem. I guess you should delete the second classes subfolder. But take a backup before deleting.
  2. Problem Solved. The problem was an older version of tools.php file. Although it was in a different subfolder of classes directory, somehow Prestashop was trying to use the old version. As soon as I deleted the old file the problem was gone.
  3. Yes, tools.php has safeDefine function on line 3537 /** * Check if a constant was already defined * @param string $constant Constant name * @param mixed $value Default value to set if not defined */ public static function safeDefine($constant, $value) { if (!defined($constant)) define($constant, $value); }
  4. I upgraded my test site from 1.6.0.14 to 1.6.1.0 with 1 click upgrade. Upgrade procedure went smoothly without errors. But now, both admin and front office page are blank. Fatal error: Call to undefined method Tools::safeDefine() in /home/.........../public_html/test/config/defines_uri.inc.php on line 86 I deleted cache files and "class_index.php" reuploded tools.php with ftp, cleaned cookies, browser cache but these did not solve the problem. Can someone please help me?
  5. I had the same problem, for the solution follow the link. when translating email templates the url's become broken. the brackets " { " and " } " are replaced by %7B and %7D. Same for the logo url, shop logo turns to an attachment. https://www.prestashop.com/forums/topic/413406-solved-email-templates-urls-broken-after-editing-and-saving-%7B-%7D/?hl=%2Bemail+%2Blinks+%2Bbroken&do=findComment&comment=2021017
  6. Hello, I have a problem with automated emails sent to customers. All emails sent from the shop are blank with no text, no html, only shop logo. I use php mail. Send test mail is working. It was working when I first installed PS 1.6.0.9, but somehow it got broken. I upgraded to 1.6.0.14 but this did not solve the problem. Also, I can't save the settings for email format in advanced paramaters --> email. Whenever I check mail format: "both" and save, it does not stay this way, it is unchecked. I checked the PS_MAIL_TYPE table from the database, changing the mail format from BO does not change the value in the database table. I manually changed PS_MAIL_TYPE to 3 but it did not help. Although I am not sure, I suspect something went wrong when I tried to translate email templates. Any help will be very much appreciated, Thanks
×
×
  • Create New...