Page 1 of 2
Error 500:JHtml phocacartitem when associate a multilingual product
Posted: 08 Jul 2023, 19:17
by morphinestyle
I managed to associate only one multilingual product, but from the second onwards I get the error 500:JHtml phocacartitem.
Also, there is the Joomla TEXT CONSTANT COM_MENUS_ITEM_FIELD_ASSOCIATION_NO_VALUE displayed in the ASSOCIATIONS field instead of the text equivalent.
Has anyone ever had this problem?
Re: Error 500:JHtml phocacartitem when associate a multilingual product
Posted: 09 Jul 2023, 13:09
by Jan
Hi, can you enable debug mode and display the full error message (including file and row of where the error occurs)?
Can you paste a screenshot of where do you get this problem?
Which version of Phoca Cart do you use?
Jan
Re: Error 500:JHtml phocacartitem when associate a multilingual product
Posted: 09 Jul 2023, 15:05
by morphinestyle
Here the debug:
https://ibb.co/4s1d91m
Here the TEXT_CONSTANT without entry:
https://ibb.co/HqdgBsd
Re: Error 500:JHtml phocacartitem when associate a multilingual product
Posted: 09 Jul 2023, 20:37
by morphinestyle
I was forget: I use the latest version of Phoca Cart
Re: Error 500:JHtml phocacartitem when associate a multilingual product
Posted: 10 Jul 2023, 16:58
by Jan
Hi, do you get the same problem with latest Beta?
https://github.com/PhocaCz/PhocaCart/re ... 8Beta6.zip
Jan
Re: Error 500:JHtml phocacartitem when associate a multilingual product
Posted: 10 Jul 2023, 17:34
by morphinestyle
Hi Jan,
unfortunately the beta does not fix the problem.
The text constant COM_MENUS_ITEM_FIELD_ASSOCIATION_NO_VALUE is still empty.
If you need I can provide you with access: it is a site still under development.
Re: Error 500:JHtml phocacartitem when associate a multilingual product
Posted: 11 Jul 2023, 23:58
by Jan
Hi, regarding the not translated string, Are you sure, your language is up-to-date?
COM_MENUS_ITEM_FIELD_ASSOCIATION_NO_VALUE is standard Joomla string, which can be found in:
administrator/languages/en-GB/com_menus.ini (line cca 77)
Code: Select all
COM_MENUS_ITEM_FIELD_ANCHOR_TITLE_LABEL="Link Title Attribute"
COM_MENUS_ITEM_FIELD_ASSIGNED_LABEL="Menu"
[b]COM_MENUS_ITEM_FIELD_ASSOCIATION_NO_VALUE="- No association -"[/b]
COM_MENUS_ITEM_FIELD_BROWSERNAV_LABEL="Target Window"
Regarding the error: there is standard Joomla code called which should not get such problems. Which version of Joomla do you use? Which version of Phoca Cart?
Jan
Re: Error 500:JHtml phocacartitem when associate a multilingual product
Posted: 12 Jul 2023, 16:01
by morphinestyle
Hello Jan!
Text constant
I have administrator/languages/en-GB/com_menus.ini exactly as you shown me.
I have no Language override for COM_MENUS_ITEM_FIELD_ASSOCIATION_NO_VALUE.
Similarly, if I try to associate a normal Joomla article with a corresponding article in another language, in the assignment SELECT i normally read: "select an article". (if it can help you)
Joomla version
4.3.2
Phoca Cart version
4.0.8Beta6
At the moment if I try to associate a product with another in a different language Phoca Cart opens the modal/popup with a joomla backend/admin page with the error "500 JHtml phocacartitem not found"
Re: Error 500:JHtml phocacartitem when associate a multilingual product
Posted: 14 Jul 2023, 02:02
by Jan
Hi, try to test version 4.0.8 Beta7, It should be implemented there:
https://github.com/PhocaCz/PhocaCart/re ... 8Beta7.zip
It is possible that there will be problems in database as there is change between Beta version, in such case, run these SQL commands:
Code: Select all
ALTER TABLE `#__phocacart_attribute_values` ADD COLUMN `published` int(1) NOT NULL DEFAULT '1' AFTER `alias`;
ALTER TABLE `#__phocacart_attributes` CHANGE `published` `published` int(1) NOT NULL DEFAULT '1';
UPDATE `#__phocacart_attributes` SET `published` = 1;
change #__ to your db prefix
Jan
Re: Error 500:JHtml phocacartitem when associate a multilingual product
Posted: 14 Jul 2023, 20:36
by morphinestyle
Hello Jan,
the new beta solves the issue of product association in multilingual and also the problem with the constant that JText doesn't display.
Great!
Thank you!