• Resolved Anonymous User 12480850

    (@anonymized-12480850)


    Hi,

    First of all, thanks for making this plugin! I think it just what I need.
    Unfortunately I am getting an error will trying to op the detailpage of a project. I get the following line as a responce from my browser:

    Fatal error: Using $this when not in object context in /mydomain.com/public_html/wp-content/plugins/birds-portfolio/birds-portfolio.php on line 90

    What can we do to fix this? thanks in advance.

    https://wordpress.org/plugins/birds-portfolio/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Frederic Serva

    (@fredserva)

    Amazing…
    Can you open the archive page?
    Try http://yourdomain.com/work/SLUG_OF_ONE_OF_YOUR_PORTFOLIO_CATEGORY/

    Thread Starter Anonymous User 12480850

    (@anonymized-12480850)

    Nope, I can’t, I get; Epic 404 – Article Not Found

    Plugin Author Frederic Serva

    (@fredserva)

    First, did you flush your rewrite rules? (Visit “Settings > Permalinks” in your WordPress admin)

    2nd, Correct path?
    Go to Portfolio > Projects Category, then hover one of your category name, then click View.

    Code for calling archives’ page & single project is the same.
    So, you should have the same Fatal error: Using $this when not in object context in if trying to access both templates.

    If not, let me know.
    I’ve tested this plugin with a lot of themes and nothing went wrong…

    Thread Starter Anonymous User 12480850

    (@anonymized-12480850)

    yes, I get the same Fatal error..

    I am using this theme: http://jointswp.com/ css version

    But I don’t think it a theme issue I tried also other theme’s

    About flushing permalinks, I didn’t know about this till I read about it in your instruction of this plugin. So I looked it up and found this story: https://www.wpkb.com/can-flush-wordpress-permalinks/
    So if this is flushing permalinks, I did it as well.

    I also don’t thinks it’s a conflict with an other plugin, I’ve tested it by turn all other plugins off. And still get the same error.

    Plugin Author Frederic Serva

    (@fredserva)

    I know it’s not a theme issue or a conflict with another plugin.
    It’s a php syntax problem.

    I released new version of the plugin.
    Update and let me know…

    Thread Starter Anonymous User 12480850

    (@anonymized-12480850)

    Okay, I’ve updated it.
    Flushed it.
    And after that check it out.

    Detail pages and category pages now give the following error:

    Fatal error: Using $this when not in object context in /home/user/domains/mydomain.com/public_html/wp-content/plugins/birds-portfolio/birds-portfolio.php on line 156

    The; work/SLUG_OF_ONE_OF_YOUR_PORTFOLIO_CATEGORY/ still gives a page 404

    Plugin Author Frederic Serva

    (@fredserva)

    Then check your PHP version…
    The PHP version of your server must be 5.4 or higher

    Thread Starter Anonymous User 12480850

    (@anonymized-12480850)

    I am running Php 5.3.28

    Plugin Author Frederic Serva

    (@fredserva)

    Making my WordPress plugins require PHP 5.4

    This is a very good read 😉

    Thread Starter Anonymous User 12480850

    (@anonymized-12480850)

    Okay, thanks, I am going to look in to this. I’ll keep you updated.

    Thread Starter Anonymous User 12480850

    (@anonymized-12480850)

    Nice! I’ve updated to php 5.4 and it works now.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Can't open detailpage of projects’ is closed to new replies.