Support Forum

Error Log

BR Brandon
Brandon
Member

I am seeing alot of these in my error logs.

file: /simple-press/sp-api/sp-api-auths.php
line: 42
function: sp_get_auth
Notice | Trying to get property of non-object

Not sure what that means or if something I should be concerned about. What do you think?

18 Answers

New Answer

MP Mr Papa
Mr Papa
Member

generally, I would say you dont need to worry about them…  Its really there for us to help users who might be having issues… ideally, it would be empty for anyone…

and being in alpha, we are still running through fixing any notices that are happening, so its premature for us to say it should be empty…  and what you are seeing is a notice, not an error…

That said, the line referenced is not a notice that we have been seeing anywhere in our testing…  nor after a quick look do I understand how you would be getting that…

are you have done an svn up on to the latest on core, plugins and themes?  is the date on the notice current?? ie can you clear the log and see if they keep occurring?

If so, will need some additional info under what circumstances you are getting that notice…

BR Brandon
Brandon
Member

The notice is recurring and I did update to latest this AM.

 

I wonder if that has anything to do with me getting this Php error in the latest post widget.

Fatal error: Call to undefined function sp_recent_posts_tag() in /problem-with-post-edit-buttonome/places8/public_html/wp-content/sp-resources/forum-plugins/template-tags/library/sp-recent-posts-widget.php on line 37

I get this when I turn on Template-tags and widgets then add the recent post widget to my sidebar.

 

MP Mr Papa
Mr Papa
Member

could be. technically, the template tags plugin is not ready for action yet. we are still going through it and converting everything over to 5.0…

Andy was working the widget before his vacation but not sure he finished it…

I will see if I can take a quick look at it in the AM…

BR Brandon
Brandon
Member

If there is anything I can do to help with the template tags plugin let me know. I use a few different ones on my site.

MP Mr Papa
Mr Papa
Member

thanks… Andy was working but is on 3 week vacation so will get them when he gets back…

took a quick look…  seems like if you replaced that call in the widget file

sp_recent_posts_tag()

with

sp_do_sp_RecentPostsTag()

it might get you over the hump…  the widget calls a tag that has been updated to 5.0, but the widget itself has not…

BR Brandon
Brandon
Member

Thanks,

I was messing with that but it looks like I need to tweak as you will see here on a page I use here for recent posts.

http://placeshiftingenthusiasts.com/recent-forum-posts/

 

As a side note my theme is basically red over light background. Since there was no overlay like that I created my own. I called it Sky Red since I used the Sky Blue as a template for it. Added it to the overlays folder and made it selectable by adding to the spTheme.txt file.

I need to tweak a few more things but if anyone is interested in this color overlay I will be glad to share.

You can see what I have so far from my main forum page.

http://placeshiftingenthusiasts.com/forum/

MP Mr Papa
Mr Papa
Member

If you would like to share that overlay, we would be happy to add it to the default theme…

if you want to email it to support at simple-press dot com, I will add it this week…

so is that the widget? on a page? looks like some css would clean it up… keep in mind, that for the widget, we cannot (actually choose not to) load our css since its on a non forum page… we do add styling elements so that you can style it in your wp theme…

LH Lee H
Lee H
Member

Haven’t seen it, but good work on the overlay Brandon *insert thumbs up smilie here*

BR Brandon
Brandon
Member

Mr Papa said

If you would like to share that overlay, we would be happy to add it to the default theme…

if you want to email it to support at simple-press dot com, I will add it this week…

I need to tweak it just a bit first to fix the drop down color background and a couple of other thing first. I will do that in the next couple of days and then email it over.

so is that the widget? on a page? looks like some css would clean it up… keep in mind, that for the widget, we cannot (actually choose not to) load our css since its on a non forum page… we do add styling elements so that you can style it in your wp theme…

 

No I simply added made it a call/run of php like  <?php sp_do_sp_RecentPostsTag();?> to the page.I do need to look into it further to see why the text of the post is not showing up. I just haven’t had the chance to do so yet.

I just needed something to come up if anyone clicked on my recent posts dropdown menu tab instead of an error message.

Once I figure it out the I will also use it on my home page to show the recent posts along side of my WordPress blog posts/articles.

If you go to my other site http://vulkanocommunity.com/ in not only the body of the page but also in the right sidebar using the widget.

The Vulkano Community I can’t test on (paid site) so it’s a good comparison of how it worked before and works now.

MP Mr Papa
Mr Papa
Member

yeah, so let us finish the template tag conversion and see if its better for you…  you could always write a separate plugin to do exactly what you want…  hoping to see lots of user spawned plugins coming with 5.0…  Andy is on vacation for another couple weeks then we have a big 2 week push to get to beta… and the template tag plugin should be done before beta…

will look forward to the overlay…

any chance you could relay your experience creating an overlay?  was it fairly simple? did we give enough info and tools?

BR Brandon
Brandon
Member

Mr Papa said

yeah, so let us finish the template tag conversion and see if its better for you… \

Sounds like a good idea for now. I will leave as is until there is an update.

any chance you could relay your experience creating an overlay?  was it fairly simple? did we give enough info and tools?

 

It all depends on how someone does things. If I would have to say if it was simple then no. I doubt anyone without a lot of knowledge on how php and css files work, would ever be able to create their own overlay.

Also, from what I can see there is no easy way to preview any changes you may make in the overlay. Even when it comes to the ‘stock’ provided ones. You have to select and save it then go to the site to see what it looks like. Something that’s not good to do on a very active site.

MP Mr Papa
Mr Papa
Member

agree. one should not be developing a theme or overlay on an active site…

and the goal with overlays was to make it easier to change up the colors than having to create a whole new theme…  I hope we got there… 

but yes, if you do not have knowledge of php and css, one would not generally be creating a theme for wp or sp…  so that basic knowledge would be needed…

BR Brandon
Brandon
Member

Lee H said

Haven’t seen it, but good work on the overlay Brandon *insert thumbs up smilie here*

Sorry about hijacking my own thread with several different topics. smile

I will try and summarize the different things.

1) The latest post widget.

Changing line 37 in sp-recent-posts-widget.php from ‘sp_recent_posts_tag’ to ‘sp_recentpoststag’ will fix the php error and show the info. It will not accept any arguments though. To change the default arguments you have to change them here

function sp_do_sp_RecentPostsTag($args=”) {
    $defs = array(‘tagId’        => ‘spRecentPostsTag’,
                  ‘tagClass’     => ‘spListTag’,
                  ‘topicIds’    => 0,
                  ‘orderByGroup’=> 0,
                  ‘limit’        => 8,
                  ‘showForum’    => 1,
                  ‘showUser’    => 1,
                  ‘showAvatar’    => 1,
                  ‘avatarSize’    => 25,
                  ‘avatarClass’    => ‘spAvatarTag’,
                  ‘showDate’    => 1,
                  ‘showTime’    => 0,
                  ‘niceDate’    => 1,
                  ‘listTags’    => 1,
                  ‘listClass’    => ‘spListItemTag’,
                  ‘linkClass’    => ‘spLinkTag’,
                  ‘echo’        => 1
                  );

 

in sp-RecentPosts-tag.php

If the line 37 error could be fixed for future updates then, even if you lose the hard coded args, at least it wouldn’t error out if someone overwrites the tag files.

2) The error log, from the original post here.

I am still getting the notice but am not seeing any real issue from it so I won’t worry about it unless you care to try and debug or something.

3) My WordPress theme uses a similar color overlay. See attached on how they show them. Maybe something like that would work for Simple Press?

MP Mr Papa
Mr Papa
Member

yes, sorry I wasnt clear… was just trying to get rid of the error message…

We have played with some ideas on the color overlays preview, including something like that… Andy still wants ‘swatches’ for a preview, so a chance something will make it in before release… 

if you wanted to work up a patch, that might push it along… coolwink