Error 500:JHtml phocacartitem when associate a multilingual product

Phoca Cart - complex e-commerce extension
morphinestyle
Phoca Professional
Phoca Professional
Posts: 118
Joined: 19 Jan 2022, 19:55

Error 500:JHtml phocacartitem when associate a multilingual product

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error 500:JHtml phocacartitem when associate a multilingual product

Post 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
If you find Phoca extensions useful, please support the project
morphinestyle
Phoca Professional
Phoca Professional
Posts: 118
Joined: 19 Jan 2022, 19:55

Re: Error 500:JHtml phocacartitem when associate a multilingual product

Post by morphinestyle »

Here the debug:
https://ibb.co/4s1d91m

Here the TEXT_CONSTANT without entry:
https://ibb.co/HqdgBsd
morphinestyle
Phoca Professional
Phoca Professional
Posts: 118
Joined: 19 Jan 2022, 19:55

Re: Error 500:JHtml phocacartitem when associate a multilingual product

Post by morphinestyle »

I was forget: I use the latest version of Phoca Cart
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error 500:JHtml phocacartitem when associate a multilingual product

Post by Jan »

Hi, do you get the same problem with latest Beta?
https://github.com/PhocaCz/PhocaCart/re ... 8Beta6.zip

Jan
If you find Phoca extensions useful, please support the project
morphinestyle
Phoca Professional
Phoca Professional
Posts: 118
Joined: 19 Jan 2022, 19:55

Re: Error 500:JHtml phocacartitem when associate a multilingual product

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error 500:JHtml phocacartitem when associate a multilingual product

Post 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
If you find Phoca extensions useful, please support the project
morphinestyle
Phoca Professional
Phoca Professional
Posts: 118
Joined: 19 Jan 2022, 19:55

Re: Error 500:JHtml phocacartitem when associate a multilingual product

Post 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"
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error 500:JHtml phocacartitem when associate a multilingual product

Post 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
If you find Phoca extensions useful, please support the project
morphinestyle
Phoca Professional
Phoca Professional
Posts: 118
Joined: 19 Jan 2022, 19:55

Re: Error 500:JHtml phocacartitem when associate a multilingual product

Post 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!
Post Reply