• Resolved Anita

    (@bbllr87)


    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/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author swergroup

    (@swergroup)

    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.

    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.

    Plugin Author swergroup

    (@swergroup)

    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.

    Plugin Author swergroup

    (@swergroup)

    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

    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

    Plugin Author swergroup

    (@swergroup)

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

    Thread Starter Anita

    (@bbllr87)

    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!

    Plugin Author swergroup

    (@swergroup)

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘plugin activation gives fatal error when creating list of pages in dashboard’ is closed to new replies.