• Resolved Clement Decou

    (@cdecou)


    Hello,

    I use Themosis framework for my website and when i want to create new table i have this error

    Unhandled Exception

    Message:

    Undefined property: stdClass::$edit_page
    Location:

    /var/www/wordpress/htdocs/cms/wp-includes/capabilities.php on line 138
    Stack Trace:

    #0 /var/www/wordpress/htdocs/content/mu-plugins/themosis-framework/bootstrap/start.php(175): Themosis\Error\Error::native(8, ‘Undefined prope…’, ‘/var/www/wordpr…’, 138)
    #1 /var/www/wordpress/htdocs/cms/wp-includes/capabilities.php(138): THFWK_Themosis->{closure}(8, ‘Undefined prope…’, ‘/var/www/wordpr…’, 138, Array)
    #2 [internal function]: map_meta_cap(‘edit_page’, 1, 34264)
    #3 /var/www/wordpress/htdocs/cms/wp-includes/class-wp-user.php(721): call_user_func_array(‘map_meta_cap’, Array)
    #4 [internal function]: WP_User->has_cap(‘edit_page’, 34264)
    #5 /var/www/wordpress/htdocs/cms/wp-includes/capabilities.php(432): call_user_func_array(Array, Array)
    #6 /var/www/wordpress/htdocs/content/plugins/num-discourse/sync/DiscourseSync.php(38): current_user_can(‘edit_page’, 34264)
    #7 [internal function]: DiscourseSync->save_postdata(34264)
    #8 /var/www/wordpress/htdocs/cms/wp-includes/plugin.php(525): call_user_func_array(Array, Array)
    #9 /var/www/wordpress/htdocs/cms/wp-includes/post.php(3385): do_action(‘save_post’, 34264, Object(WP_Post), false)
    #10 /var/www/wordpress/htdocs/content/plugins/tablepress/models/model-post.php(116): wp_insert_post(Array, true)
    #11 /var/www/wordpress/htdocs/content/plugins/tablepress/models/model-table.php(453): TablePress_Post_Model->insert(Array)
    #12 /var/www/wordpress/htdocs/content/plugins/tablepress/controllers/controller-admin.php(819): TablePress_Table_Model->add(Array)
    #13 [internal function]: TablePress_Admin_Controller->handle_post_action_add(”)
    #14 /var/www/wordpress/htdocs/cms/wp-includes/plugin.php(525): call_user_func_array(Array, Array)
    #15 /var/www/wordpress/htdocs/cms/wp-admin/admin-post.php(69): do_action(‘admin_post_tabl…’)
    #16 {main}

    And i don’t know why…

    https://wordpress.org/plugins/tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    From what I can see, this is an error in either Themosis or some “num-discourse” plugin that you have installed. To verify this assumption, can you please try again after temporarily deactivating all other plugins and after switchting to a WordPress default theme like Twenty Sixteen? That way, we can find what’s causing this.

    Regards,
    Tobias

    Thread Starter Clement Decou

    (@cdecou)

    Thank you for the response and yeah after few minutes of debugging we find why. It is the num-discourse plugin.

    Thank you for the quick answer.

    Clément.

    Julien

    (@jlambe)

    Hi Clément,

    it seems there is an error (PHP Warning issue) regarding an object instance property probably setup dynamically.

    What you can do in the meantime is to tell your local environment to not trigger exception for all errors. You can do so by setting the constant “THEMOSIS_ERROR_REPORT” to a value of 0 inside your “config/environments/local.php” file.

    It doesn’t fix the issue but it will let you develop your solution until a fix is available.

    Regards,

    Thread Starter Clement Decou

    (@cdecou)

    Hi Julien,

    Thank you for your advice.

    Clément.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    great advice! Good to hear that you can confirm this and are working on a solution!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error when create new Table’ is closed to new replies.