Jump to content

Product back office looks weird on PS 1.7.4.2


TRIBEKA

Recommended Posts

Hello,

Today after edditing some products it seems that the product backoffice looks, goes wrong.

Is still "manageable" but we did not do anything that would trigger this outcome, just editing price and qty.

My prestashop version is 1.7.2.4 running on PHP 7.0

 

Does anyone have any ideea why ?

Many thanks in advance.

Kaitlin

Prestashop BO issue.JPG

Link to comment
Share on other sites

21 hours ago, musicmaster said:

Try cleaning the cache.

Hello,

I already did that (several times) from the BO, also clear the browser, and check with different browser, and still have this issue :(.

What else can be done?

Thanks in advance.

Link to comment
Share on other sites

On 4/10/2021 at 12:53 PM, musicmaster said:

The obvious things:

 - look for javascript errors

 - look for PHP errors in error log of the server

 - run the Prestools Integrity Checks

Hello Musicmaster,

Thanks for your reply.

There are no PHP errors in the log file on server

image.png.ce49d3b9eedbe0b8d058c681f2a226ad.png

Installed your module and this is what I found

image.thumb.png.a8775df8765d451e7f51d0b645a21bea.png

The rest of the informations seems to be clear.

Should I choose to "repair products" ? or this is not fix the issue ...

 

Thanks in advance.

 

 

 

Link to comment
Share on other sites

You don't mention javascript errors. That was the first step.

You can repair the problems, but I don't expect it will fix the problems. It won't harm to have a look at the products first: maybe you recognize the problems. That could help preventing them to happen in the future.

Did you enable debug mode?

 

Link to comment
Share on other sites

17 hours ago, musicmaster said:

You don't mention javascript errors. That was the first step.

You can repair the problems, but I don't expect it will fix the problems. It won't harm to have a look at the products first: maybe you recognize the problems. That could help preventing them to happen in the future.

Did you enable debug mode?

 

Hello,

I did not mention about Javascript because I dont know how/where to track them :(.

Now, I enable the debug mode and yes, there are some errors there when accesing the product back office as follow:

image.thumb.png.e30843ecd9209cc0ea136174fa03719e.png

ContextErrorException in TypeaheadProductCollectionType.php line 92:Notice: Undefined offset: 1

in TypeaheadProductCollectionType.php line 92

at ErrorHandler->handleError('8', 'Undefined offset: 1', '/home/tribekar/public_html/src/PrestaShopBundle/Form/Admin/Type/TypeaheadProductCollectionType.php', '92', array('view' => object(FormView), 'form' => object(Form), 'options' => array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'mapping_type' => 'product', 'limit' => '0', 'label' => 'Accesorii', 'read_only' => false, 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'remote_url' => 'https://tribeka.ro/webadmin/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Cauta si adauga un produs asociat', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>'), 'collection' => array(array('id' => '899', 'name' => 'Ghiveci decorativ tabla albastra cu fundita - Medie (ref:Pot medium blue)', 'image' => 'https://tribeka.ro/1964-home_default/ghiveci-decorativ-tabla-albastra-cu-fundita-medie.jpg'), array('id' => '1256', 'name' => 'copy of (ref:R-ELEFANT)', 'image' => 'https://tribeka.ro/2964-home_default/.jpg'), array('id' => '1257', 'name' => 'copy of (ref:C-ELEFANT)', 'image' => 'https://tribeka.ro/2966-home_default/.jpg'), array('id' => '1327', 'name' => 'copy of GALETUSA MINI GHIVECI TABLA - 6cm (ref:ZEN-01)', 'image' => 'https://tribeka.ro/3201-home_default/galetusa-mini-ghiveci-tabla-6cm.jpg')), 'i' => '4', 'id' => '1332', 'product' => object(Product))) in TypeaheadProductCollectionType.php line 92

at TypeaheadProductCollectionType->buildView(object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'mapping_type' => 'product', 'limit' => '0', 'label' => 'Accesorii', 'read_only' => false, 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'remote_url' => 'https://tribeka.ro/webadmin/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Cauta si adauga un produs asociat', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>')) in ResolvedFormType.php line 209

at ResolvedFormType->buildView(object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'mapping_type' => 'product', 'limit' => '0', 'label' => 'Accesorii', 'read_only' => false, 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'remote_url' => 'https://tribeka.ro/webadmin/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Cauta si adauga un produs asociat', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>')) in ResolvedTypeDataCollectorProxy.php line 118

at ResolvedTypeDataCollectorProxy->buildView(object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'mapping_type' => 'product', 'limit' => '0', 'label' => 'Accesorii', 'read_only' => false, 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => true, 'label_attr' => array(), 'inherit_data' => false, 'upload_max_size_message' => object(Closure), 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'remote_url' => 'https://tribeka.ro/webadmin/ajax_products_list.php?forceJson=1&disableCombination=1&exclude_packs=0&excludeVirtuals=0&limit=20&q=%QUERY', 'mapping_value' => 'id', 'mapping_name' => 'name', 'placeholder' => 'Cauta si adauga un produs asociat', 'template_collection' => '<span class="label">%s</span><i class="material-icons delete">clear</i>')) in Form.php line 1071

at Form->createView(object(FormView)) in Form.php line 1074

at Form->createView(object(FormView)) in Form.php line 1074

at Form->createView() in ProductController.php line 594

at ProductController->formAction('1348', object(Request))

at call_user_func_array(array(object(ProductController), 'formAction'), array('1348', object(Request))) in bootstrap.php.cache line 3246

at HttpKernel->handleRaw(object(Request), '1') in bootstrap.php.cache line 3205

at HttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 3359

at ContainerAwareHttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 2562

at Kernel->handle(object(Request), '1', false) in index.php line 86

Link to comment
Share on other sites

If you are on a pc, F12 or Fn-F12 will open the browser console and show javascript errors.

When I look the error that you show up on Github I see this page: https://github.com/PrestaShop/PrestaShop/issues/23895

It suggests that this error has something to do with missing product names. As you saw that with the Integrity Checks too I suggest you fix that.

Link to comment
Share on other sites

1 hour ago, musicmaster said:

If you are on a pc, F12 or Fn-F12 will open the browser console and show javascript errors.

When I look the error that you show up on Github I see this page: https://github.com/PrestaShop/PrestaShop/issues/23895

It suggests that this error has something to do with missing product names. As you saw that with the Integrity Checks too I suggest you fix that.

Hello musicmaster,

Thanks for your reply (again), based on your hints regarding javascript errors I was able to identify the culprits.

It was the blog module that I recently installed due the fact that the module bought with the theme is not working as it should ...

image.thumb.png.26803e115a9b43711279d193499900ec.png

Once I uninstall the module the page start working again, and looks just fine,

image.thumb.png.dbf5bfd559e965e73ddaa93e43e5ce0b.png

 

The only remaining issue is the second message from javascript error, that I have no clue what it means, but anyhow, as long is just that, I can live with that.

image.thumb.png.8a0c73129107955d272ad3a3e2ebedde.png

 

Still, the blog module does not work editing part and reply part, does not work, but this is another story ...

The comments area

image.thumb.png.3ac42453d9c83cec51527a3d24b05d49.png

The reply area ...

No errors on javascrip, no error on debug module, no errors on servers :(, it just not load the comment side in the back office

image.thumb.png.9550291dbdab4031abdac1457195c674.png

THANKS for all your help.

 

Link to comment
Share on other sites

Good to hear you fixed part of the problems.

The 404 errors are also a typical product of this missing product name translations error. So you really should fix that.

Normally the image in the pretty url version should look like "productname.jpg". But as you have empty product names you get this ".jpg".

prodo.jpg.d55ed1048a9812a2623619b7daf60062.jpg

Link to comment
Share on other sites

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...