• Resolved YourSiteTeam

    (@yoursiteteam)


    I have no idea where to start debugging this. I have debugging turned on and nothing is being written to the folder. All folders are 777 per instructions.

    I’ve tried PHP 5.6 and 7.0 and neither made any difference

    Error Statement
    Fatal error: Switch statements may only contain one default clause in /home/yoursite/public_html/dev/pgabr/wp-content/plugins/wp-mpdf/mpdf/mpdf.php on line 2843

    Page Where Error Occurs
    https://dev.yoursiteteam.com/pgabr/attorney/koleen-s-kirkwood/?output=pdf

    I also have WordPress in Debug mode and it added this line to the error message as well
    Notice: Trying to get property of non-object in /home/yoursite/public_html/dev/pgabr/wp-content/plugins/wp-mpdf/wp-mpdf.php on line 448

    Any help would be greatly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author fkrauthan

    (@fkrauthan)

    Do you have any other plugins installed?

    Thread Starter YourSiteTeam

    (@yoursiteteam)

    i’ve disabled all plugins and still receive the error

    Plugin Author fkrauthan

    (@fkrauthan)

    There is a high chance that the current mpdf version that is used within the plugin only supports PHP 5.5. I am personal surprised that 5.6 has the same issue as 5.5 and 5.6 don’t have many major changes in that direction.

    Hi – have the same issue – the plugin is not working with 5.6 as well 7.0. Do you think you will have an update for this soon?
    Thanks!

    Plugin Author fkrauthan

    (@fkrauthan)

    Hey I really would love to work on this plugin again (I have tons of plans to make it better for version 2). But unfortunately my team at the moment is very limited. If you are interested in helping out feel free to submit a pull request on github https://github.com/fkrauthan/wp-mpdf

    The main think that needs to be done to get it up and running again would be updating the mpdf version to a more recent one. Just need to make sure that existing templates are still compatible as I think they did some changes around headers and footers syntax in the latest mpdf versions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error: Switch statements may only contain one default clause’ is closed to new replies.