Deprecated: trim(): Passing null to parameter #1 ($string) of type string

  • Posts: 29
  • Thank you received: 3
9 hours 5 minutes ago #371973

-- url of the page with the problem -- : www.3dcreations.uk
-- HikaShop version -- : 6.4.1 stable
-- Joomla version -- : 5.4.5 stable
-- Browser(s) name and version -- : Edge
-- Error-message(debug-mod must be tuned on) -- : Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/cp3354256/public_html/libraries/src/Document/HtmlDocument.php on line 480

Hello,

I am trying (unsuccessfully) to update my site from Joomla 5.4.5 to 6.1.0. There is an issue with the plugin for backward compatibility which causes the frontend and dashboard to crash. However, in my vain attempt to solve the issues with files and plugins that may cause the update to work, I have slightly broken my pictures page - 3dcreations.uk/index.php/fluid-art/fluid-art-paintings .

Here are the lines from 480 in my php file:

480 $this->_custom[] = trim($html);

return $this;
}

/**
* Returns whether the document is set up to be output as HTML5
*
* @return boolean true when HTML5 is used
*
* @since 3.0.0
*/
In the meantime is it worth reinstalling Hikashop and will it retain all of my data?

Many thanks.

Simon

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 3
8 hours 55 minutes ago #371974

Solved!

I had left 'debug system' on in order to try and resolve my Joomla upgrade issue.

Thanks.

Simon

Please Log in or Create an account to join the conversation.

  • Posts: 85612
  • Thank you received: 14034
  • MODERATOR
4 hours 48 minutes ago #371976

Hi,

If you really have HikaShop 6.4.1 it's likely the error is not in HikaShop itself.
You can download it on our website again and install it on yours in order to make sure you have all the latest patchs.
You won't loose your data so no worries on that.
However, it's likely it won't change anything.

Note that if your issue is only the deprecated message being displayed, you can ignore it and just turn off the error reporting in the Joomla configuration.
Deprecated messages are for developers, not users and they don't indicate a bug but that something will change in future versions of PHP.

The following user(s) said Thank You: simonlindsay

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 3
4 hours 5 minutes ago #371986

Thanks Nicolas!

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum