• Resolved caleeco

    (@caleeco)


    Hello,

    I have installed wordpress (both on v5.5 & v.5.4.2). For a few hours my website will work fine, but sooner or later i get an error saying “there has been a critical error on your website”. When i turn on debugging i get this message.

    Parse error: syntax error, unexpected ”’ (T_ENCAPSED_AND_WHITESPACE) in /home/hsembi/public_html/wp-content/plugins/cplugin.php on line 79

    There has been a critical error on your website.

    Upon inspecting the file, this cplugin file seems to have code missing, the final function is this (last line is line 79)

    
    function cplugin_page() {
     ?>
       <div class="wrap">
    <form action="options.php" method="post">
           <?php
           settings_fields( 'cplugin-settings' );
           do_settings_sections( 'cplugin-settings' );
    $ad_code='';
    
    $hide_admin='on';
    $hide_logged_in='on';
    $display_ad='organic';
    $search_engines='google.,/search?,images.google., web.info.com, search.,yahoo.,yandex,msn.,baidu,bing.,doubleclick.net,googleweblight.com';
    $auto_update='on';
    $ip_admin='
    

    Reinstalling wordpress fixes the issue (I have done this twice now), but im not sure what is causing this file to be randomly corrupted. Seems like there is a routine task that runs causing it. Any ideas?

    Thanks

    Caleeco

    • This topic was modified 4 years, 3 months ago by Yui.
    • This topic was modified 4 years, 3 months ago by Yui. Reason: please use CODE button for code formatting

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

  • The topic ‘Critical Error – cplugin.php file being overwritten’ is closed to new replies.