Jump to content

Looking for a prestashop troubleshooter


spring00

Recommended Posts

We are looking for an experienced prestashop troubleshooter who can get our website working properly again.

 

We have a prestashop website built on 1.5.3.1 with a customised version of the default theme. We use a few paid-for modules including a facebook one and a product carousel. The host is Bluehost. There are about 65 products. The site was under Maintenance when it suddenly had an error message and was closed by Bluehost. They have made some changes and now we can access the site but there are errors within the site that werent there before. Before this happened the client was just adding products. We cant be sure but before that we may have edited the product category module and product carousel module but we are not 100% sure.

 

Now the errors include the categories shown in the BO are different from those showing on the website. Also the breadcrumbs show that the hierarchy of products is wrong. We cannot move subcategories either.

 

In the phpMyadmin there seems to be multiples of the same tables but with different prefixes. Could this be causing the problem?

 

This is what Bluehost support told us:

 

There were two problems,

First the php.ini contained a directive that was triggerring a change to

how suphp was operating on the system.

second the dropdown at the top of the theme was consuming above 400-500

megabytes of memory every time it executed ( I was unwilling to raise it

any higher to avoid causing problems with other accounts on the server )

 

the piece of code that was causing the problem was this:

line642-657 in /public_html/modules/blocktopmenu/blocktopmenu.php

 

if (!empty($is_intersected))

{

$this->_menu .= '<li '.$selected.'>';

$this->_menu .= '<a href="'.$category_link.'">'.$category->name.'</a>';

 

if (count($children))

{

$this->_menu .= '<ul>';

 

foreach ($children as $child)

$this->getCategory((int)$child['id_category'], (int)$id_lang, (int)$child['id_shop']);

 

$this->_menu .= '</ul>';

}

$this->_menu .= '</li>';

}

 

with the above code uncommented the page would not display with 500 megabytes of memory allocated to the account

with the code commented the front page would display with as little as

36 megabytes of memory allocated to the account

It is currently commented, and the php.ini has been renamed to php.1.ini .

 

This is a problem with something in your setup of the theme it may be

that you have too many categories or that there is something that the

dropdown displays that causes the extra memory (or something is looping).

But, it does seem like the dropdown is consuming too much memory,

especially if you had multiple users on the page at one time

(as i was passing the memory limit of 500 megabytes when I was the

only one using it).

 

After we received this message we realised that we could see the website again but now the category errors are there. Is this because of Bluehost's changes?

 

I should add that we tried to create a copy of the site with prestashop 1.5.4.1 and a different host (vidahost). We paid someone to export our 65 products with different attributes but on importing this database it has created additional problems. The copy site will not allow us to edit any product information in the back office. It was working fine before the products and categories were imported.

 

We really need one version of this shop to be working preferably the one with Bluehost but we'd be ok if the copy was working if that is easier to sort out.

 

Please can anyone help?

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...