WordPress.org

Ready to get started?Download WordPress

Forums

Page2cat: Category, Pages & Posts Shortcodes
[resolved] plugin activation gives fatal error when creating list of pages in dashboard (9 posts)

  1. bbllr87
    Member
    Posted 1 year ago #

    I have installed version 3.0.3 of the plugin. I have never used it or any of its predecessors before so should not have any legacy code.

    After I activated the plugin, I clicked on the link to give me my list of Pages, so that I could experiment with the shortcodes.

    However I got the following fatal error when it tried to draw the page, the column headings were also unfamiliar:

    Catchable fatal error: Object of class WP_Error could not be converted to string in C:\xampp\htdocs\wordpress\wp-content\plugins\page2cat\page2cat_class.php on line 129

    The column "Archive Link" has been added to the list of columns that I would normally expect to see.

    When I deactivate the plugin the page returns to normal.

    It is reproducible, reliably.

    This is on a local installation and webserver where I test changes before putting them onto the production site. I can supply screenshots if required.

    http://wordpress.org/extend/plugins/page2cat/

  2. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    What WordPress version are you using? 3.4.2?
    Can you provide us a screenshot? Our testing machine isn't reporting this error at all, and in my local tests plugin installs and works as expected, so this is really strange.

  3. dpsgn2
    Member
    Posted 1 year ago #

    Same Problem here.
    When the plugin is activated WordPress does not show a list of pages
    https://dl.dropbox.com/u/7398157/part1.png

    When deleting the code in line 129-131 the list is shown
    https://dl.dropbox.com/u/7398157/part2.png

    Deactivating the plugin does solve the problem.

  4. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you all for your reports.

    Bug is triggered with the get_the_category_by_ID() call, that's not common (for us at least). Working on a fix, 3.0.4 coming soon.

  5. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    It should be fixed in 3.0.4, will be released on WP repo as soon as we test it.
    If you would like to test by yourself, please download this release candidate:

    http://dev.swergroup.com/pages-and-posts-shortcodes/get/3.0.4.zip

  6. dpsgn2
    Member
    Posted 1 year ago #

    That works. Thanks a lot.

    A small issue is still present.
    When editing a category WordPress states the following error at the top of the page.

    Warning: Missing argument 2 for SWER_aptools_admin::category_edit_form_fields() in /www/htdocs/XXX/wordpress/wp-content/plugins/page2cat/page2cat_class.php on line 199

  7. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    Fixed in dev 3.0.6 alongside with other issues, will be released on the WP repo soon.
    Thank you for your patience.

  8. bbllr87
    Member
    Posted 1 year ago #

    Thank you. Both the fix in the zip file and version 3.0.6 worked.
    Wasn't expecting a response, let alone a fix on a Sunday!

  9. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    We use this plugin too, so we were broken as well.
    That's why you had responses and fixes on Sunday, you're lucky :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic