Jump to content

bluebolt44

Members
  • Posts

    31
  • Joined

  • Last visited

Profile Information

  • Location
    London
  • Activity
    Freelancer

bluebolt44's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hi all, Hopefully this is something that is easy-ish to help with. Our web hosting upgraded from Windows Server 2005 to 2008 yesterday and prestashop ceased to work, throwing out 500 errors. We found out this was due to an issue with the database not migrating the password correctly and an SQL query solved the problem. Once I could actually access the shop, it seems all ok but once I try to access the catalog tab to look at products, update, etc. I get nothing but the following message onscreen: PHP Notice: Array to string conversion in ********\htdocs\prestashop\classes\AdminTab.php on line 190 See below a snippet of the offending code/file: public function __construct() { global $cookie; $this->id = Tab::getCurrentTabId(); $this->_conf = array( 1 => $this->l('Deletion successful'), 2 => $this->l('Selection successfully deleted'), 3 => $this->l('Creation successful'), 4 => $this->l('Update successful'), 5 => $this->l('Status update successful'), 6 => $this->l('Settings update successful'), 7 => $this->l('Image successfully deleted'), 8 => $this->l('Module downloaded successfully'), 9 => $this->l('Thumbnails successfully regenerated'), 10 => $this->l('Message sent to the customer'), 11 => $this->l('Comment added'), 12 => $this->l('Module installed successfully'), 13 => $this->l('Module uninstalled successfully'), 14 => $this->l('Language successfully copied'), 15 => $this->l('Translations successfully added'), 16 => $this->l('Module transplanted successfully to hook'), 17 => $this->l('Module removed successfully from hook'), 18 => $this->l('Upload successful'), 19 => $this->l('Duplication completed successfully'), 20 => $this->l('Translation added successfully but the language has not been created'), 21 => $this->l('Module reset successfully'), 22 => $this->l('Module deleted successfully'), 23 => $this->l('Localization pack imported successfully'), 24 => $this->l('Refund Successful'), 25 => $this->l('Images successfully moved')); if (!$this->identifier) $this->identifier = 'id_'.$this->table; //THIS IS LINE 190 if (!$this->_defaultOrderBy) $this->_defaultOrderBy = $this->identifier; $className = get_class($this); if ($className == 'AdminCategories' OR $className == 'AdminProducts') $className = 'AdminCatalog'; $this->token = Tools::getAdminToken($className.(int)$this->id.(int)$cookie->id_employee); } I would very much appreciate any help. Please let me know if I can provide any more information or anything else to help a speedy solution. Kind regards.
  2. Bump? Any help would really be appreciated, so I can access my catalogue, even if it's to export items so I can make a fresh install or upgrade of new version of Prestashop.
  3. Hi all, Hopefully this is something that is easy-ish to help with. Our web hosting upgraded from Windows Server 2005 to 2008 yesterday and prestashop ceased to work, throwing out 500 errors. We found out this was due to an issue with the database not migrating the password correctly and an SQL query solved the problem. Once I could actually access the shop, it seems all ok but once I try to access the catalog tab to look at products, update, etc. I get nothing but the following message onscreen: PHP Notice: Array to string conversion in ********\htdocs\prestashop\classes\AdminTab.php on line 190 See below a snippet of the offending code/file: public function __construct() { global $cookie; $this->id = Tab::getCurrentTabId(); $this->_conf = array( 1 => $this->l('Deletion successful'), 2 => $this->l('Selection successfully deleted'), 3 => $this->l('Creation successful'), 4 => $this->l('Update successful'), 5 => $this->l('Status update successful'), 6 => $this->l('Settings update successful'), 7 => $this->l('Image successfully deleted'), 8 => $this->l('Module downloaded successfully'), 9 => $this->l('Thumbnails successfully regenerated'), 10 => $this->l('Message sent to the customer'), 11 => $this->l('Comment added'), 12 => $this->l('Module installed successfully'), 13 => $this->l('Module uninstalled successfully'), 14 => $this->l('Language successfully copied'), 15 => $this->l('Translations successfully added'), 16 => $this->l('Module transplanted successfully to hook'), 17 => $this->l('Module removed successfully from hook'), 18 => $this->l('Upload successful'), 19 => $this->l('Duplication completed successfully'), 20 => $this->l('Translation added successfully but the language has not been created'), 21 => $this->l('Module reset successfully'), 22 => $this->l('Module deleted successfully'), 23 => $this->l('Localization pack imported successfully'), 24 => $this->l('Refund Successful'), 25 => $this->l('Images successfully moved')); if (!$this->identifier) $this->identifier = 'id_'.$this->table; //THIS IS LINE 190 if (!$this->_defaultOrderBy) $this->_defaultOrderBy = $this->identifier; $className = get_class($this); if ($className == 'AdminCategories' OR $className == 'AdminProducts') $className = 'AdminCatalog'; $this->token = Tools::getAdminToken($className.(int)$this->id.(int)$cookie->id_employee); } I would very much appreciate any help. Please let me know if I can provide any more information or anything else to help a speedy solution. Kind regards.
  4. Hi all, I have recently built a prestashop which i have integrated into our existing site through an iframe, as the shop is a secondary function to our site which is informative. The site is http://www.ttx.co.uk and the shop can be found at http://ttx.co.uk/equipment-rental/for-sale/ Now this is fine (although I admit it is hard to find from the homepage currently, but my main issue is that google has indexed the shop but due to it being in an iframe - search results take you to http://ttx.co.uk/prestashop/ So the customers looking for this information/products have no idea (apart from the url), how to contact us, who we are or etc. I wonder if there is a better way to integrate prestashop into our existing site as this current way, having search engine results that point to a dead end is not very helpful (possibly counter-productive). If you need any more information, please just ask. Thanks in advance! James
  5. If anyone else needs the answer to this, I have coded three solutions: 1) Displays whether there is more than one available (Yes or No). <p id="morethan1">More than 1 available: {if ($product->quantity > 1)} <span>{l s='YES'}</span> {else} <span>{l s='NO'}</span> {/if}</p> 2) Displays the available quantity (numerically) {if isset($product->quantity)}<spanclass="new" style="text-transform:capitalize;">Quantity Available: {l s={$product->quantity[spam-filter]{/if} 3) Displays a Tickbox or Cross (from img directory) depending on whether quantity > 1 <p id="morethan1"><b>More than one available:</b> {if ($product->quantity > 1)} <span><img src="{$img_ps_dir}admin/enabled.gif" alt="{l s='Yes'}" style="vertical-align:text-top;"/></span> {else} <span><img src="{$img_ps_dir}admin/disabled.gif" alt="{l s='No'}" style="vertical-align:text-top;"/></span> {/if}</p> Thanks again to Jeckyl for your advice. Bluebolt44
  6. Hi Jeckyl, Thanks for your reply. I tried to edit the code (see below) but couldn't see any change in the FrontOffice? <p id="availability_statut"> <span id="availability_label">{l s='More than 1 available?:'}</span> <span id="availability_value" {if="" $product-="">quantity <= 0} class="warning_inline"{/if}> {if $product->quantity >= 1}{else}{l s='NO'}{else}{l s='YES'}{/if} </span> </p> I am trying to get it to say 'More than 1 available?:' then 'YES' if quantity >1 and 'NO' if Quantity <=1 Apologies as my Smarty is pretty non-existent. Thanks in advance for any help.
  7. Hi guys, hoping you can help me here. I have implemented prestashop at my work but they have asked for a specific extra I can't see that exists elsewhere already. They would like a tickbox on the product page that says "More than one available?" with a tickbox, featuring a red cross if quantity =1, and a green tick if quantity >1. (See pictures) It would probably be placed in the same box as the short description is displayed, after a few linebreaks (where it is implemented obviously doesn't matter as the code can be moved) Any help would be much appreciated! Kind regards.
  8. It only happens when "Instant Search" is selected as 'on'. Without it, my search results are correctly formatted. I haven't edited Currently I have it turned off as it is not necessary but would be nice to find out why it's playing up.
  9. I wouldn't recommend using these settings as I believe this is insecure and may pose a security threat. My workaround is in the backoffice on your localhost, go into performance tab and change the encryption to CUSTOM BLOWFISH. Then if you export the DB and restore it on your remote server, everything should be fine =) Marking this as Solved - More than happy to try and help if I can though with anyone having similar problems.
  10. I eventually found it in ps_product after another look and changed it manually (which worked) but I ran your query on my live version of the server and it also worked perfectly. Thanks =) Edit: I will mark this post as solved and hopefully will provide help for anyone else wanting to display product condition in the front office.
  11. Thanks jhnstcks, that was exactly what I have been looking for and it works perfectly. Which table is it that I need to edit within the database? I couldnt seem to find anything when I searched through. Thanks again!
  12. Installed the copy of Prestashop to a seperate Linux host we have to test it, same error but now I can access the log and this is what I have got: [Wed May 30 11:36:23 2012] [error] [client 193.203.76.10] FastCGI: server "/var/www/fcgi/php-cgi" stderr: PHP Fatal error: Call to undefined function mcrypt_encrypt() in /home/fhlinux135/t/tx360.co.uk/user/htdocs/prestashop/classes/Rijndael.php on line 46 Looks like an issue to do with mcrypt not running on the servers (both windows and linux I would assume - something FastHosts doesn't have enabled). I found a post regarding this issue and their solution worked for me also (See below): http://www.prestasho...-remote-server/ If I change this, I can access my store front and back but then if I change the encryption option to blowfish and re-run the SQL query to change PS_CIPHER_ALGORITHM back to 1, I cannot access the shop again with either encryption method selected. My Question is: Is it secure, disabling the mcrypt cipher? And if not, what can I do (ask Fasthosts to change the php.ini?)
  13. I did have a look but couldn't find where it is, so am waiting a response from customer support (unless anyone knows where the logs for Fasthosts are found?)
×
×
  • Create New...