Upgrading to PHP 7 With Fortuna Theme


  • Member
    CoderZ
    March 1, 2017 at 12:22 pm #31109

    I would like to upgrade but your theme and plugins get several warnings and errors. Please let me know how to fix these.

    Thanks

    FILE: /nas/content/staging/coderz/wp-content/themes/fortuna/page.php
    —————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————–
    1 | WARNING | File has mixed line endings; this may cause incorrect results
    —————————————————————————–

    FILE: /nas/content/staging/coderz/wp-content/themes/fortuna/includes/ext/option-tree/includes/ot-cleanup-api.php
    —————————————————————————————————————-
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    —————————————————————————————————————-
    126 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4.
    280 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4.
    —————————————————————————————————————-

    FILE: /nas/content/staging/coderz/wp-content/themes/fortuna/includes/boc_widgets.php
    ———————————————————————————————
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————————————
    17 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    97 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ———————————————————————————————

    FILE: /nas/content/staging/coderz/wp-content/plugins/parallax_video_backgrounds_vc/assets/css/index.php
    ——————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————-
    1 | WARNING | File has mixed line endings; this may cause incorrect results
    ——————————————————————————————————-

    FILE: /nas/content/staging/coderz/wp-content/plugins/parallax_video_backgrounds_vc/assets/images/index.php
    ———————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————————————————-
    1 | WARNING | File has mixed line endings; this may cause incorrect results
    ———————————————————————————————————-

    FILE: /nas/content/staging/coderz/wp-content/plugins/parallax_video_backgrounds_vc/assets/img/index.php
    ——————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————-
    1 | WARNING | File has mixed line endings; this may cause incorrect results
    ——————————————————————————————————-

    FILE: /nas/content/staging/coderz/wp-content/plugins/parallax_video_backgrounds_vc/assets/js/index.php
    ——————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ——————————————————————————————————
    1 | WARNING | File has mixed line endings; this may cause incorrect results
    ——————————————————————————————————

    FILE: /nas/content/staging/coderz/wp-content/plugins/parallax_video_backgrounds_vc/assets/index.php
    —————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————————
    1 | WARNING | File has mixed line endings; this may cause incorrect results
    —————————————————————————————————

    FILE: /nas/content/staging/coderz/wp-content/plugins/parallax_video_backgrounds_vc/admin/auto-update/index.php
    ————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    ————————————————————————————————————–
    779 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    ————————————————————————————————————–

    FILE: /nas/content/staging/coderz/wp-content/plugins/parallax_video_backgrounds_vc/admin/bsf-core/auto-update/index.php
    ———————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————————————–
    884 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0 – use mysqli instead.
    ———————————————————————————————————————–

    FILE: /nas/content/staging/coderz/wp-content/plugins/js_composer/include/templates/teaser.html.php
    ————————————————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————————————————————————
    84 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%= id %>” src=”<%= url %>”…
    ————————————————————————————————————————————————————

    FILE: /nas/content/staging/coderz/wp-content/plugins/js_composer/include/templates/editors/partials/backend-shortcodes-templates.tpl.php
    ————————————————————————————————————————————————–
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ————————————————————————————————————————————————–
    44 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%= type %>”>
    45 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%= heading %></div>
    47 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%= form_element %>
    ————————————————————————————————————————————————–

    FILE: /nas/content/staging/coderz/wp-content/plugins/js_composer/include/templates/editors/popups/shared-templates/category.tpl.php
    ————————————————————————————————————————————————————-
    FOUND 0 ERRORS AND 12 WARNINGS AFFECTING 12 LINES
    ————————————————————————————————————————————————————-
    134 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- post_id %>”
    135 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- title %>”
    141 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- title %></button>
    149 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- post_id %>"]” titl…
    160 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- id %>”>
    162 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- thumbnailUrl %>” alt=”"…
    165 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- previewUrl %>” data-tit…
    167 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <% if (!downloaded) { %>
    171 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <% } else if (downloaded &&…
    175 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <% } %>
    180 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%- title %></span>
    182 | WARNING | Possible use of ASP style opening tags detected. ASP style opening tags have been removed in PHP 7.0. Found: <%= status %>
    ————————————————————————————————————————————————————-

    FILE: /nas/content/staging/coderz/wp-content/plugins/js_composer/js_composer.php
    ———————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————-
    220 | ERROR | Visibility for magic method __sleep must be public. Found: private
    ———————————————————————————-
    Update Available: 5.0.1; Current Version: 5.0;

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.