ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Message: Trying to get property of non-object and forum not parsing tags

October 26, 2011 9:17pm

Subscribe [4]
  • #1 / Oct 26, 2011 9:17pm

    Hi there,
    We just upgraded the client’s site from 1.6x through to 2.3 along with the forum. Their forum has been customized but we managed to get through the upgrade relatively unscathed with two exceptions.

    First we’re getting this error:

    Message: Trying to get property of non-object
    Filename: libraries/Functions.php(656) : eval()'d code
    Line Number: 59

    This is happening on all forum pages. We switched to the default themes and it’s still happening.

    Second, the forum suddenly doesn’t parse IMG or URL tags unless they’re lowercase. Since all of the previous ones were uppercase, this doesn’t work so well for us.

    Thanks in advance for any help!

    Tyler

  • #2 / Oct 27, 2011 2:09pm

    Any ideas for this? Client is not happy and we’re looking rather awkward. 😊

    Thanks!
    Tyler

  • #3 / Oct 27, 2011 2:10pm

    Also the tags in the wiki aren’t parsing when they’re capitalized.

  • #4 / Oct 27, 2011 2:22pm

    Sue Crocker

    26054 posts

    Hmmm… Tyler, do you have a link we can see this at? I’m going to be fiddling with my 1.7.1 install to see how img tags are created. Thanks in advance for your patience.

  • #5 / Oct 27, 2011 2:24pm

    I’ll PM you some links.

  • #6 / Oct 27, 2011 2:54pm

    Sue Crocker

    26054 posts

    Got them, thanks. I’ll use in my testing.

  • #7 / Oct 31, 2011 2:13pm

    Any updates here? Pretty please?

    Tyler

  • #8 / Oct 31, 2011 6:41pm

    Apparently the forum here doesn’t support capitalized tags either (eg. my site. That means the old forum and wiki software used to, which would indicate that along the way one of the upgrade scripts went through and re-capitalized everything to lowercase OR it’s was ignored/not seen until now.

    Thoughts?

  • #9 / Nov 01, 2011 11:25am

    Hi Sue, is anyone looking into this?

  • #10 / Nov 01, 2011 10:55pm

    Kevin Smith

    4784 posts

    Hi Tyler,

    My apologies for your wait. I’m going to do my best to take care of you and get you back up to speed as quickly as possible.

    Regarding the uppercase/lowercase BBCode issue you mentioned, I was able to confirm that myself with an EE1 to EE2 installation, so I filed a bug report on your behalf here. I’m going to escalate that issue as well so that we might be able to get a resolution to you even quicker. It will all depend on how the devs want to handle it.

    Regarding the PHP error you’re receiving, could you post back here with some more context for that error? You said you get it on every page. Does it occur inline or at the top of the page? That error comes from a part of the core Functions class that evaluates PHP in templates and themes. Given the context, are you able to narrow down the PHP string that’s causing the issues?

  • #11 / Nov 02, 2011 11:26am

    Hi Kevin,

    All of the capitalized wiki BBcode tags aren’t working in the Wiki either, even in v1.7.1 that we’re running on production at the moment. This should probably be incorporated in the bug report.

    Regarding the PHP error, it does indeed occur inline near the top of the page in the forum.

    <body>
    ...lots of other code for the site navigation…
                     <div>
                          <div>
                          <a href="http://www.site.com/forums/member/messages/view_folder/1/">__<div>__<h4>A PHP Error was encountered</h4><p>__Severity: Notice_Message:  Trying to get property of non-object_Filename: libraries/Functions.php(656) : eval()'d code_Line Number: 59__</div>No messages                     </a>  |  <a href="http://dev.site.com/?ACT=10">Log out</a><br />
                        </div><br />
                    </div><br />
                  </div></p>
    
    <p><br />
                </div><br />
        </div><br />
        <div class="nav_login_right"></div><br />
    </div>

    I’d love to be able to see if that PHP error goes away when we push everything over to the production domain, but we can’t do that until everything works.

     

  • #12 / Nov 02, 2011 11:28am

    I checked and, while indeed the forum is running through an EE template, PHP is turned off on that template. Here’s the code:

    {preload_replace:image_path="/themes/site_themes/sideshow/_i/main"}
    <!-- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
    {embed="sideshow_assets/_header" sub_header="Action Forums"}
    {embed="sideshow_assets/_css"}
    {embed="sideshow_assets/_js"}
    {embed="sideshow_assets/_body-start"}
    {embed="sideshow_assets/_nav"}
    <!-- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
    <!-- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
    {exp:forum}
    <!-- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
    <!-- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
    <div>/div>
    {embed="sideshow_assets/_nav-bottom-news"}
    {embed="sideshow_assets/_body-end"}
  • #13 / Nov 02, 2011 4:15pm

    Kevin Smith

    4784 posts

    Hi Tyler,

    Robin figured out the BBCode bug you were experiencing and posted a fix at the bug report here. That fix will be included in the next release of EE as well.

    Regarding the PHP error, the first thing I notice is that your forum template includes more than the allowed tag. Note in the documentation here that only the {exp:forum} tag is allowed in the EE template.

    The feature that allows you to run your forum themes through EE templates is to allow you to use EE tags and variables in your forum themes. They should be placed in the theme files, not in the same template as your {exp:forum} tag.

  • #14 / Nov 02, 2011 4:23pm

    Very interesting. Thanks for all of this. I’ll try to come back with an update.

    Will the fix posted help us with the Wiki also?

    Thanks,
    Tyler

  • #15 / Nov 02, 2011 4:23pm

    Oh, and we did NOT build the forum ourselves, we are taking over for someone else. 😉

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases