prestashop,upgrade-issue,maintenance-modeRelated issues-Collection of common programming errors


  • Kestion
    smarty prestashop
    I’m trying to add a new google analytics event in a form. So I have something like this : <a href=”#” name=”button1″ onclick=”dataLayer.push({‘event’: ‘button1-click’});” >Button 1</a>So far, so good. But I get this weird smarty error : Fatal error: Uncaught exception ‘SmartyCompilerException’ with message ‘Syntax Error in template “C:\wamp\www\mycookit/themes/cookit/delivery.tpl” on line 164 “dataLayer.push({‘event’: ‘event_name’});” – Unexpected “: “, expected one of: “}” , ” “‘ i

  • smerny
    prestashop prestashop-1.5
    I have a very simple piece of code :$dropOrder = new DropOrder($dropOrderId); $dropOrder->is_supplier_paid = $payValue; $dropOrder->save();It works and saves a ‘is_supplier_paid’ field value into the database. But it also does unexpected actions and fills all null valued fields with 0 values.I try to save it like this :$dropOrder->save(true);But I still have the same strange behavior. I want to change one field only and don’t touch the other ones.

  • user159377
    php mysql module prestashop
    In prestashop I am doing a module. Where I need to insert some values to the database. So for that I made my code look like this DB::getInstance()->Execute(‘INSERT INTO `’._DB_PREFIX_.’socialapps` (`app_id`, `app_name`, `status`, `title`) VALUES (1, ‘google plus’, 0, ‘google title’)’);But every time I am getting error like Parse error: syntax error, unexpected T_STRING in the line. So can someone kindly tell me what is the wrong here? Any help and suggestions will be really appreciable. Thank

  • j0k
    javascript smarty prestashop
    I’m developing a Prestashop website, and I’m getting a “SyntaxError: unterminated string literal” javascript error. The problem is when I get an address, this works nice:,”address1″:”Pza libertad” ,”address2″:”4&ordm; 3&ordf;” ,”postcode”:”08905″The problem comes here:,”address1″:”Plaza libertad 3″,”address2″:” 4&ordm;3&ordf;”,”postcode”:”08905″This code is generated like this:{foreach from=$type.formated_fields_values key=pattern_name item=field_name name=inv_loop} {if !$smarty.

  • j0k
    php prestashop
    maybe someone can shed some light on this: why when I upload big image to my prestashop powered website it gives “memory exhausted error” (which is what I’ve expected), but only when php version is 5.3.14. When I switch to 5.4.4 – the same procedure gives blank page. display_errors is set to ‘on’ both times.From php.net documentation – “Although display_errors may be set at runtime (with ini_set()), it won’t have any affect if the script has fatal errors. This is because the desired runtime acti

  • dazfx
    php function smarty prestashop
    Is a function that is called in product-list.php.{mycat id_product_my=$product.id_product}In this form, write a line above, the variable($product.id_product) is not passed to function:{$product.id_product}returns right result as id.{mycat id_product_my=15}returns right result as categories of product with id(15).What’s wrong?——————————————–php funct:function smarty_compiler_mycat($params, &$smarty) {$id_product_my = $params[‘id_product_my’];$ret = “”;if ($row = D

  • Sid
    php prestashop
    I am using a prestashop and I need to change the max_input_vars so translation changes are applied from the Translation section.I cannot use php_value in .htaccess because of my hosting provider policy, so I need to use the php.ini file. I’ve created it into the prestashop administration folder with the content:max_input_vars = 3000But when I update the translations, I get the error of max_input_vars, so it is not being changed with the php.ini. I’ve also tried without blanks, with a trailing “;

  • Petr Srámek
    mysql database innodb prestashop myisam
    I make my first eshop using Prestashop and I’m not sure if is better use MyISAM or InnoDB. In eshop could be max about 3 000 items. I think that most important for that question is how much items will be in eshop, but if I didn’t write some other important information, please ask me.

  • Vit Kos
    php prestashop
    I have a back office controller in my module that displays my info. I’m trying to redirect manager to another controller by clicking on a button in toolbar. For this I have made a button using the initToolbar() method: everything seems fine but it crashes on click. here is the code of the initToolbar():public function initToolbar() {parent::initToolbar();$this->toolbar_btn[‘preview’]=array(‘href’=>$this->context->link->getAdminLink(‘AdminClaim’,true),’desc’=>$this->l(“Claims

  • AndrewS
    jquery prestashop
    I can’t figure out how to configure jQuery NoConflict(). This small function (jquery) works fine:$(‘.product_list > li’).css(‘width’, ‘50%’).css(‘width’, ‘-=42px’);$(‘.product_grid > li’).css(‘width’, ‘20%’).css(‘width’, ‘-=42px’);$(‘.product_grid ul.buttons li’).css(‘width’, ‘100%’).css(‘width’, ‘-=21px’);It stops working when I run another jQuery script.This is a “blocklayered.js” and it also uses some AJAX script (this si a script that works for filtering products in prestashop)How can

  • Pixman
    centos plesk upgrade-issue
    I have a server turning on Plesk 10.4.4 and I want to upgrade it to 11.0.9.When I use the online upgrade tool, I have this warning: Parallels Panel pre-upgrade check… WARNING: You have a mixed set of ‘php’ and ‘php53’ packages installed. Installation or upgrade may fail or produce unexpected results. To resolve this issue run “sed -i.bak-e ‘/^\s*skip-bdb\s*$/d’ /etc/my.cnf ; yum update ‘php*’ ‘mysql*'”. PHP Warning: Directive ‘safe_mode’ is deprecated in PHP 5.3 and greater in Unknown on line

  • Alexander
    ubuntu apt update dpkg upgrade-issue
    I’ve ran a general audit of the system and found that a few packages were aging, such as OpenSSH and related so I went to apt-get update then upgrade.Unfortunately it seems to get the packages correctly (downloading), however cannot finish the upgrade process. Here is an exact copy of my recent command line to show this error, note that packages were already downloaded from previous test of this so it needs to retrieve zero bytes (note I am root:)root@foobar:~# apt-get upgrade Reading package li

  • Lokinou
    windows-7 virtualbox upgrade-issue
    Host machine was ported from 11.10 to 12.04 LTS (Xubuntu)Virtualbox image is win7 x64With upgrade /dev/vboxdrv was missing, so within synaptics I reinstalled:virtualbox (4.1.12dsfg-2 not OSE) virtualbox-qt 4.1.12dsfg virtualbox-dkms 4.1.12dsfgThen it works again but my windows is badly crashed. Once started and desktop icons pops out it’s really slow and crash (network icon is also blocked)I reinstalled guest additions, but does not make any difference.Nothing is serious because I still have ava

  • Heuster
    iphone ios objective-c upgrade-issue
    When I am trying to update the application using iTunes, I am getting a error pop-up – Unable to download application. I am running into this error only when my app is doing network operations using sockets. In other scenarios where app is either not running or is idle, it works correctly. From the console logs, I got following error message – 2013-04-18 10:11:39 AM GMT+07:00 backboardd <Warning>: pid_suspend failed for [7104]: Unknown error: -1, Unknown error: -1 2013-04-18 10:11:39 AM GM

  • Nixphoe
    windows-server-2008 raid bios heat upgrade-issue
    My server has been restarting almost daily, some times twice a day. This started after changing the raid drives with larger drives. My log for the raid says everything is fine and has not had a single issue saving. The Windows event logs have no critical errors and the errors it has none seem to correlate to the times the crashes happen. The bios clock has also been getting reset with each reboot. That is most likely the cmos battery. Would that cause the whole system to crash? Also it reboots e

  • oak
    umbraco upgrade-issue
    I asked this question in the Umbraco forum three days ago and haven’t had a single answer. I have a website whose content I can no longer edit and I know the people at SO are the best, so here goes:I just upgraded a site from Umbraco version 4.6.1 to 6.0.0 and now the only thing that displays in the content tab in the backend is a “Content” node. The whole tree has disappeared but the site actually still works it’s just that I can’t reach any of the content in the backend–Media, Settings, Devel

  • fredrik
    .net integrated-pipeline-mode upgrade-issue integrated commerceserver2007
    I am using Microsoft Commerce Server 2007 sp2 and a custom ASP.NET 2.0 website. Everything works well in Classic Pipeline, but when I try to use the Integrated pipeline, it fails with the following error:Server Error in ‘/’ Application. Request is not available in this context Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System

  • Musti Hakan
    prestashop upgrade-issue maintenance-mode
    First things first I am new to Prestashop.I have two issues. First is when I’m in the maintenance mode and I add my ip adres to gain access, I still can’t access my frontoffice. This gives server error in my Chrome Browser.But the bigger issue is when I turn the Maintenance mode off (and deleting my IP adress from the list) There is nothing. Just a blank screen. After a little research I found how to turn the error reporting on in defines.inc.php like this:/* Debug only */ define(‘_PS_MODE_DEV_’

  • Sparky
    jquery jquery-validate upgrade-issue
    We just moved our application from jQuery Validate 1.7 to 1.11 and modified the code in all the Views to be in sync with the 1.10 version. However, for a scenario, validate.js is throwing null object exception. I have narrowed down to a function in js from which this exception is thrown but unable to reach the specific LOC that is causing the issue / is incompatible with the new version.While troubleshooting, I used the 1.7 version of validate.js and everything seems to work fine.Could anyone sh

  • Rabbott
    ruby-on-rails upgrade-issue
    I am attempting to upgrade my app from Rails 2.3.4 to 2.3.8..I went into the environment.rb file, and changedRAILS_GEM_VERSION = ‘2.3.4’ unless defined? RAILS_GEM_VERSIONtoRAILS_GEM_VERSION = ‘2.3.8’ unless defined? RAILS_GEM_VERSION(do i need to do something else?)I am using MySQL Server version: 5.1.47I am not using bundlerI am running on OS X 10.6.6Here is my database.yml, which matches my WORKING applications that I created in 2.3.8 (rather than upgrading)development:adapter: mysqlencoding:

  • Peter Smeekens
    7 theming maintenance-mode
    I guess the title says it all. What would be the best practice for theming the maintenance mode in Drupal 7?

  • Musti Hakan
    prestashop upgrade-issue maintenance-mode
    First things first I am new to Prestashop.I have two issues. First is when I’m in the maintenance mode and I add my ip adres to gain access, I still can’t access my frontoffice. This gives server error in my Chrome Browser.But the bigger issue is when I turn the Maintenance mode off (and deleting my IP adress from the list) There is nothing. Just a blank screen. After a little research I found how to turn the error reporting on in defines.inc.php like this:/* Debug only */ define(‘_PS_MODE_DEV_’

Web site is in building