Fatal error: address-list.php & directory.php

About Support Directory Fatal error: address-list.php & directory.php

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2517
    Avatar for holygrailholygrail
    Member

    Hi

    Just found your plugin for a church site I’m building and it looks very promissing. I’ve struck a couple of errors in the code.

    Fatal error: Call to a member function getOutput() on a non-object in /home/acf/www/wp-content/plugins/church-admin/display/address-list.php on line 41

    Fatal error: Call to a member function show() on a non-object in /home/acf/www/wp-content/plugins/church-admin/includes/directory.php on line 104

    I’ve had a dig in the code but I’m not sure what is wrong, the functions being called seem to return the right value. I’m wondering if its because of the class being used outside of the if statement? My PHP skills are a bit neglected these days.

    Hope you can help

    #3211
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Thanks for posting those errors – I’ve had a quick dig and you have indeed spotted a bug.
    I can replicate the first error with an empty directory on a shortcode display page. – I need to move a “}” from line 37 to a new line between line 46 and 47.

    The second error can occur on the directory admin page with a empty directory. I need to move

    Code:
    if(!empty($results))
    {

    from lines 107-108 to line 100

    They will be done in a new update in the next 24 hours!

    The PDF link on a front end directory page also needs to specify which type of member to work smoother too.

    #3212
    Avatar for holygrailholygrail
    Member

    Thanks for that, I look forward to the next release. And thanks for promptly fixing. :D

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.