• Home
  • Get help
  • Ask a question
Last post 1 hour 49 min ago
Posts last week 81
Average response time last week 4 hours 29 min
All time posts 67931
All time tickets 10501
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#1199 – Notice: Trying to get property of non-object in.....

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 26 October 2015 12:59 UTC
andregotts
This error is relating to sh404SEF version 4.6.0.2718 and Joomla version 3.4.5. The template is from 'template monster'.

I am getting the follow error when the site is in offline mode.

"Notice: Trying to get property of non-object in /var/www/vhosts/......../......../templates/theme3122/includes/includes.php on line 127 "

also on line 122

Disabling sh404SEF removes the notices.

Please advice how I can get rid of the message.

Many thanks in advance.
Monday, 26 October 2015 13:03 UTC
andregotts
To see the error, please visit http://xxxx.uk/
Monday, 26 October 2015 13:29 UTC
wb_weeblr
Hi

As your rightly pointed out, the error is in the template. The fact that it goes away when sh404SEF is disabled doesn't mean the problem is in sh404SEF, only that the bug in your template is hidden when Joomla SEF is used.

This kind of issues is common with templates coming from non-joomla specialized template sites.

Maybe if you cut and paste here (using the "code" button) the faulty line (plus 5 lines before and after), I can suggest a fix.

Rgds

 
Monday, 26 October 2015 15:32 UTC
andregotts
Most appreciated.

// Year

// Privacy Link
$privacyMenuLink = $menu->getItem($this->params->get('privacy_link_menu'));

$privacy_link_url =  JRoute::_($privacyMenuLink->link.'&Itemid='.$privacyMenuLink->id);
	
// Terms Link	
$termsMenuLink = $menu->getItem($this->params->get('terms_link_menu'));

$terms_link_url =  JRoute::_($termsMenuLink->link.'&Itemid='.$termsMenuLink->id);


Thank you for your time.
Monday, 26 October 2015 15:35 UTC
wb_weeblr
Hi

1 - Which one is the faulty line, ie line #127 ?

2 - Do you have settings such as Privacy link and Terms link set in your template parameters?

Rgds
 
Monday, 26 October 2015 15:53 UTC
andregotts
Lines 122 and 127

I have uploaded a screen shot of the template parameters,
Monday, 26 October 2015 16:33 UTC
wb_weeblr
Hi

well, which one is line 122 and which one is line 127?

I think we won't get anywhere this way, as I have no knowledge of these templates. I assume you don't have any tech support with them?

Rgds


 
Monday, 26 October 2015 17:30 UTC
andregotts
line 122
$privacy_link_url = JRoute::_($privacyMenuLink->link.'&Itemid='.$privacyMenuLink->id);

and line 127
$terms_link_url = JRoute::_($termsMenuLink->link.'&Itemid='.$termsMenuLink->id);

No tech support with the template company and I have know clue where to start looking for the problem.

I told my wife not to go with this company for templates. I've spent quite a bit on it already.

Any help from you will do.



Monday, 26 October 2015 17:55 UTC
andregotts
I have rounded the problem down to the sh404sef - Offline code plugin.

But you probably new that already right.

When I disabled the plugin I do not get the error messages.

Is this plugin needed or will it somehow hurt my seo if it is kept off?
Monday, 26 October 2015 18:41 UTC
wb_weeblr
Hi

I don't know any problem and as far as I know, this is a bug in the template, as evidenced by the error message. Just hiding the problem by disabling a part of sh404SEF does not solve the problem in the template!!

Rgds


 
Tuesday, 27 October 2015 12:56 UTC
andregotts
Thank you for advice.
Tuesday, 27 October 2015 13:06 UTC
wb_weeblr
Hi

I am a bit worried about this because we start seeing more and more of these template monsters templates on our users' sites, and many have small bugs like those. There's definitely not the same quality here as from Joomla! specialists.

Anyway, closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unecessary risk in the future.

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.