• Resolved slabbi

    (@slabbi)


    The following new code in sdm-post-type-content-handler.php crashes my site:

    add_filter(‘the_title’, ‘filter_sdm_post_type_title’, 10, 2);
    function filter_sdm_post_type_title($title, $id) {
    […]

    I currently try to find out why. When I remove these lines the site works again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter slabbi

    (@slabbi)

    Update:

    I have to remove the add_filter(‘the_title’, ‘filter_sdm_post_type_title’, 10, 2); to fix the problem. When I remove only $title = apply_filters(‘sdm_post_type_title_single_post’, $title, $id); the main page crashes but some sub-pages still work.

    • This reply was modified 1 year, 1 month ago by slabbi.
    • This reply was modified 1 year, 1 month ago by slabbi.
    Thread Starter slabbi

    (@slabbi)

    Fix:

    Replace:

    add_filter(‘the_title’, ‘filter_sdm_post_type_title’, 10, 2);
    function filter_sdm_post_type_title($title, $id) {

    with

    add_filter(‘the_title’, ‘filter_sdm_post_type_title’, 10, 2);
    function filter_sdm_post_type_title($title, $id = null) {

    See the notes here:

    https://developer.www.ads-software.com/reference/hooks/the_title/

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Thank you for reaching out to us and reporting this issue. However I tested the new version and did not crash my site. What PHP version is running in your server? What WordPress version is running in your site?

    Kind regards.

    • This reply was modified 1 year, 1 month ago by mbrsolution.
    Plugin Author mra13

    (@mra13)

    Thank you. We have updated the plugin. Please update to v3.9.21 when you can.

    Thread Starter slabbi

    (@slabbi)

    My pleasure ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘3.9.20 crashes site’ is closed to new replies.