VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: jambo90210 on March 25, 2024, 03:39:44 AM

Title: Error -Event onContentAfterTitle only accepts String results
Post by: jambo90210 on March 25, 2024, 03:39:44 AM
This is also logged as ticket - TECH-0000000057 - No response in 2 weeks so logging here

Testing J5 upgrade and getting an error "Event onContentAfterTitle only accepts String results." on one page, the error is coming from "Content - SP Page Builder" plug, if I disable this, then the problem goes away, however then articles that have page builder content don't work as you work expect..

The pagebuilder team have looked into this and are saying the problem is with VirtueMart, which makes sense as the problem is only with the "shop" pages

   
website https://hopeful-wing.111-67-29-104.plesk.page/

Click on the "SHOP" menu item for error.

thanks in advance
Title: Re: Error -Event onContentAfterTitle only accepts String results
Post by: thanhlich on April 11, 2024, 13:30:07 PM
Same problem

Joomla 5.0.3
php 8.2
Title: Re: Error -Event onContentAfterTitle only accepts String results
Post by: Jumbo! on April 11, 2024, 17:27:31 PM
Turn off the "Enable Joomla Plugin" option in VirtueMart Configuration under the "Shop" tab and check again.
Title: Re: Error -Event onContentAfterTitle only accepts String results
Post by: thanhlich on April 14, 2024, 16:20:49 PM
Quote from: Jumbo! on April 11, 2024, 17:27:31 PMTurn off the "Enable Joomla Plugin" option in VirtueMart Configuration under the "Shop" tab and check again.

Can't access configuration with error Joomla\CMS\HTML\HTMLHelper

Title: Re: Error -Event onContentAfterTitle only accepts String results
Post by: Jumbo! on April 15, 2024, 07:15:32 AM
Quote from: thanhlich on April 14, 2024, 16:20:49 PMCan't access configuration with error Joomla\CMS\HTML\HTMLHelper

That is a different issue. Which version of VirtueMart are you using?

1. Enable Debugging and set "Error Reporting" as "Maximum" in Joomla Global Configuration.
2. Set PHP Development mode for "all" in VirtueMart Configuration.

Return to the error pages to see the complete error trace reports. Take screenshots and share them here.
Title: Re: Error -Event onContentAfterTitle only accepts String results
Post by: jambo90210 on April 24, 2024, 05:37:15 AM
Quote from: Jumbo! on April 11, 2024, 17:27:31 PMTurn off the "Enable Joomla Plugin" option in VirtueMart Configuration under the "Shop" tab and check again.

thanks, that works!