TRIBEKA Posted April 8, 2021 Share Posted April 8, 2021 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 Link to comment Share on other sites More sharing options...
juanrojas Posted April 8, 2021 Share Posted April 8, 2021 hello, if you change the browser do you see it the same? Link to comment Share on other sites More sharing options...
TRIBEKA Posted April 9, 2021 Author Share Posted April 9, 2021 14 hours ago, juanrojas said: hello, if you change the browser do you see it the same? Hello. Yes, tested on Chrome and Opera, on both is the same. Link to comment Share on other sites More sharing options...
musicmaster Posted April 9, 2021 Share Posted April 9, 2021 Try cleaning the cache. Link to comment Share on other sites More sharing options...
TRIBEKA Posted April 10, 2021 Author Share Posted April 10, 2021 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 More sharing options...
musicmaster Posted April 10, 2021 Share Posted April 10, 2021 34 minutes ago, TRIBEKA said: What else can be done? The obvious things: - look for javascript errors - look for PHP errors in error log of the server - run the Prestools Integrity Checks Link to comment Share on other sites More sharing options...
TRIBEKA Posted April 12, 2021 Author Share Posted April 12, 2021 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 Installed your module and this is what I found 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 More sharing options...
musicmaster Posted April 12, 2021 Share Posted April 12, 2021 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 More sharing options...
TRIBEKA Posted April 13, 2021 Author Share Posted April 13, 2021 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: 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 More sharing options...
musicmaster Posted April 13, 2021 Share Posted April 13, 2021 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 More sharing options...
TRIBEKA Posted April 13, 2021 Author Share Posted April 13, 2021 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 ... Once I uninstall the module the page start working again, and looks just fine, 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. Still, the blog module does not work editing part and reply part, does not work, but this is another story ... The comments area 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 THANKS for all your help. Link to comment Share on other sites More sharing options...
musicmaster Posted April 13, 2021 Share Posted April 13, 2021 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". Link to comment Share on other sites More sharing options...
musicmaster Posted April 13, 2021 Share Posted April 13, 2021 I saw that Prestools Integrity Checks don't regenerate the link_rewrite. You will need to do that with another function: Under Cleanup the second last function is "regenerate friendly urls". Run that once and then empty the cache. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now