• Rather lost here. Something new is breaking the page when creating a new classified. Existing classifieds are fine…

    It’s breaking right before our theme’s breadcrumbs start. Hid them with CSS, no change. Can I get some help troubleshooting? We only added one plugin recently and disabled it, again to no effect. Thanks

    • This topic was modified 5 years, 1 month ago by getyler3.
    • This topic was modified 5 years ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    hmm i am not sure, i allowed myself to publish a new “Test” Ad on your site here https://islandfishermanmagazine.com/classifieds/add/ and it went fine without any issues?

    How do i replicate this problem?

    Thread Starter getyler3

    (@getyler3)

    Hi Greg,

    Just determined the problem is when you specify a SUBcategory. If you don’t specify a category at all like you did, it’s fine. If you specify a parent category, it’s also fine. If you pick the parent category AND a subcategory it’s fine. Pick a subcategory by itself however and it breaks the page when published.

    Suggestions (besides removing subcategories)?

    • This reply was modified 5 years, 1 month ago by getyler3.
    • This reply was modified 5 years, 1 month ago by getyler3.
    • This reply was modified 5 years, 1 month ago by getyler3.
    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    @getyler3 i selected just a subcategory in the [adverts_add] and the preview still shows fine to me (see https://www.dropbox.com/s/ln7pcn2q9zwuvmv/ifm-preview.png?dl=0)?

    I am not sure how to replicate your problem??

    Plugin Author Greg Winiarski

    (@gwin)

    @getyler3 one additional note, if the page you see is cut off then it looks like there is some kind of fatal error.

    What you can try to do is open wp-config.php file add there a line define( "WP_DEBUG", true ); and replicate the error, now aside of cut off page you should also see an error message which you can copy and paste here.

    Thread Starter getyler3

    (@getyler3)

    Thanks again @gwin. Further testing shows the problem was just that one subcategory, flying fishing. Picking any of the other 3 subcategories doesn’t break the page. So I just deleted that subcategory, created another one called fly fishing and it’s fine. WTH?

    The error said “Recoverable fatal error: Object of class WP_Error could not be converted to string in …/wp-includes/formatting.php on line 4193

    Does that make any sense? If not, don’t worry about it… issue is fixed by just replacing that one subcategory.

    Thanks for your time!

    Thread Starter getyler3

    (@getyler3)

    Take it back, now it’s breaking the page again. Any suggestions with that error?

    Plugin Author Greg Winiarski

    (@gwin)

    The error you posted (“Recoverable fatal error …”) occurs in esc_url() function.

    By default, the function is not being used unless you are applying it to one of the fields using adverts_form_load filter or the Custom Fields extension?

    One thing you can try is open file wpadverts/includes/functions.php go to function adverts_filter_url() is should be on line about 1137, and before return esc_url_raw( $data ); add debug_print_backtrace(); and retry posting you should now see an error message if the esc_url() function will be used by WPAdverts. The error message you can copy and paste here.

    If you could paste the exact values to enter in the [adverts_add] form in order to replicate this issue on your site it would be helpful as well.

    Finally, if you have some other WP plugins installed you can try disabling them one by one and see if and when the error goes away, maybe this is just some conflict with other WP plugin.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page break when adding new classified’ is closed to new replies.