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.

top_authors Fatal error with profile_path

July 23, 2012 10:29am

Subscribe [1]
  • #1 / Jul 23, 2012 10:29am

    minimal design

    356 posts

    I followed the instructions in this thread:

    This question may be related to a resolved thread.

    But after reading the actual error, it looks like my problem is not the same… Here’s the error I get:

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined property: Top_authors::$functions

    Filename: top_authors/pi.top_authors.php

    Line Number: 202

    Fatal error: Call to a member function create_url() on a non-object in /Users/blablabla/third_party/top_authors/pi.top_authors.php on line 202

    This only happens if I try to use the profile_path tag in my template…

    Any idea?

    Thanks!

  • #2 / Jul 23, 2012 6:39pm

    Kevin Smith

    4784 posts

    Hi minimal design,

    If you open up that plugin’s PHP file and look at line 202, you should see this:

    $this->functions->create_url($this->functions->extract_path($key).'/'.$row['member_id']),

    Change that to this:

    $this->EE->functions->create_url($this->EE->functions->extract_path($key).'/'.$row['member_id']),

    Does that take care of it?

  • #3 / Jul 25, 2012 8:15am

    minimal design

    356 posts

    Sorry for the late reply… I went ahead and used another workaround at the template level so I kinda forgot about this… BUT I just checked and your fix does the trick indeed! Working.

    Do I need to file a bug somewhere or you took care of it already? Thanks!

  • #4 / Jul 26, 2012 12:20pm

    Dan Decker

    7338 posts

    Hi minimal design,

    I just confirmed with Kevin that he pushed that fix into the code. It should be in an upcoming release!

    Is there anything else I can assist you with?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases