WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: ProjectManager] Fatal error: Cannot access empty property

[Resolved] [Plugin: ProjectManager] Fatal error: Cannot access empty property

  • Chris
    Participant

    @camthor

    When adding a new dataset, I see the following message:

    New dataset added to the database.

    Fatal error: Cannot access empty property in /… etc. …/wp-content/plugins/projectmanager/lib/core.php on line 888

    After that, I cannot even access the Overview page.
    This happens with version 2.9.8.

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • projectmanager_bugreport
    Member

    @projectmanager_bugreport

    This happened for my projectmanager case, too.
    However, it first occurred right after upgrading from 2.9.7 to 3.0.3 (including the database migration thereafter).

    The code works now, after I manually edited lib/core.php around line 932, where the error was caused.

    In my edited version, that loop now looks like this:

    foreach ( $meta AS $m ) {
    				$key = sanitize_title($m->label);
    				if($key != null && $key != "")
    				{$dataset->{$key} = $m->value;}
    			}

    So I just added the “if” conditions.
    The php interpreter cannot again be stuck in the assignment with an empty property.

    Time for another Bugfix? Or my issue only?

    Had the same issue as well, your workaround fixed it nicely. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: ProjectManager] Fatal error: Cannot access empty property’ is closed to new replies.