Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Creating default object from empty value
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Creating default object from empty value

Creating default object from empty value 5 years, 7 months ago #43130

order nr: 00033976

Joomla 1.5.26
Virtuemart 1.1.14
Joomsef 3.11

We're have the following error generating a lot per minute:

[07-Mar-2014 16:57:24 GMT0] PHP Warning: Creating default object from empty value in [REMOVED]\components\com_sef\joomsef.php on line 1877

[REMOVED] is not part of the error but for security issue I've removed the folder path

On line 1877 the following is stated:
$item->title = JoomSEF::_getCustomMenuTitle($option);

Is this a known issue, if not can I get some pointer to get this problem fixed?
The topic has been locked.

Re: Creating default object from empty value 5 years, 7 months ago #43168

  • dajo
  • OFFLINE
  • Posts: 5070
Hello Nathalie,

It is known to us that JoomSEF's code doesn't yet conform to the newest standards of PHP 5.3 and 5.4, so some warnings can be displayed on some places if they're enabled in your PHP configuration. These however don't affect the functionality. We're fixing some of these issues in each new version of JoomSEF. Thank you for your report for this one, we'll fix it in next version.

In the meantime, you can just add the following line just before the line that reports the problem:
$item = new stdClass();

That should fix it.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný