Recent Topics

1 Jul 08, 2015 07:07    

Setting up 6.5 - when I create a new post and try to save it, I am getting this error:

Fatal error: Call to a member function get_contact_url() on a non-object in /home/xxxxx/public_html/inc/widgets/widgets/_menu_link.widget.php on line 340

What do I need to do to remedy this?

The line reads:

if( ! $url = $current_Blog->get_contact_url( true ) )

The post is saved.

2 Jul 08, 2015 21:28

Can you post ok without the menu link widget? If so try to upload and install a new version of the widget, it may just be a widget error.

However what are you using the widget for? I have it twice in my menu, once for a pre-defined contact and another for a pre-defined login not for a url specified by me

Probably a good idea to change the title, if you can, to be more descriptive with (menu link widget)

If the error is for the contact page it looks like it can't find it
Call to a member function get_contact_url()

Looking at the code in the widget
if( ! $url = $current_Blog->get_contact_url( true ) )
{ // user does not allow contact form:

it seems you also have to have the contact from enabled but I don't think this would cause the errror ?? still could be it can't find the form

3 Jul 09, 2015 01:00

Thanks for that. I suspected it couldn't find the contact page, and I found after a while that it was because I had not correctly identified the blog in the appropriate blog index page. Wrong number! Seems odd because I had earlier been working through entries with no problems. Any, seems to be OK.

Correct configuration would surely go a long way.

4 Jul 19, 2015 23:06

@tgodfrey we'd still love to be able to fix this but we cannot reproduce the bug even with a wrong collection ID.

Can you still reproduce this bug in version 6.6.0 ?


Form is loading...