• First, absolute amateur might be giving me to much credit. So, Beware. Info: Web sever: siteground. Theme: SG Double child theme of SG Window. Using SG Optimizer for process. When checking compatibility with SG Opti I get the following:

    FILE: /home/thepubcl/public_html/wp-content/themes/sg-window/inc/social-media-widget.php
    ——————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————–
    7 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.

    It seems like this is a theme developer issue but I have circled SG Window support forums for 2 days and can find no answer. Running PHP 5.6 now, but can’t update until issues resolved. If I can fix great, If I need to delete a problem plugin Ok. Site has worked fine for the last four years while getting my degree and now that I am hardly utilizing it until I get a job, and traffic is at an all time low, it starts loading slow and giving problems. Not a large site. I do like the theme for my purposes and would like to keep using it if possible. Anyway if anyone can help it would be appreciated.

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

Viewing 16 replies (of 16 total)
  • Hi @thepubcl,

    What is happening here:
    The dl() function is opening an extension (bounce) for the mailpoet plugin. As dl() has been deprecated (even completely disabled) you need to insert these extensions directly into your php.ini to make it work and then disable the pieces of code using the dl() function.
    I think the best way to try is ask your hostingparty.

    If you are not using the bounce function within Mailpoet you can try the following for bounce.php

    /*if (function_exists(‘dl’)) {
    //We will try to load it on the fly
    $fatalMessage = ‘The system tried to load dynamically the ‘ . $EXTENSION . ‘ extension’;
    $fatalMessage .= ‘<br/>If you see this message, that means the system could not load this PHP extension’;
    $fatalMessage .= ‘<br/>Please enable the PHP Extension ‘ . $EXTENSION;
    ob_start();
    echo $fatalMessage;
    //This method could cause a fatal error, but we will still display some messages in that case.
    //dl($EXTENSION);
    $warnings = str_replace($fatalMessage, ”, ob_get_clean());
    if (extension_loaded(‘imap’) OR function_exists(‘imap_open’))
    return true;*/

    pear.php

    /*function loadExtension($ext)
    {
    if (!extension_loaded($ext)) {
    // if either returns true dl() will produce a FATAL error, stop that
    if ((ini_get(‘enable_dl’) != 1) || (ini_get(‘safe_mode’) == 1)) {
    return false;
    }
    if (OS_WINDOWS) {
    $suffix = ‘.dll’;
    } elseif (PHP_OS == ‘HP-UX’) {
    $suffix = ‘.sl’;
    } elseif (PHP_OS == ‘AIX’) {
    $suffix = ‘.a’;
    } elseif (PHP_OS == ‘OSX’) {
    $suffix = ‘.bundle’;
    } else {
    $suffix = ‘.so’;
    }
    //return @dl(‘php_’.$ext.$suffix) || @dl($ext.$suffix);
    }
    return true;*/

    Last bit of pear.php:
    `function __construct($message = ‘unknown error’, $code = null,
    $mode = null, $options = null, $userinfo = null)’

    Let me know if anything changes.
    According to Mailpoet everything should be functioning normal, but because your system is not going anywhere forward we need to disable the bounce part completely.

    • This reply was modified 6 years, 7 months ago by helldog2018.
Viewing 16 replies (of 16 total)
  • The topic ‘Trying to update to PHP 7, compatability issues’ is closed to new replies.