• Resolved raidenelite

    (@raidenelite)


    Hello, i recently updated the plugin from an old version and i’m getting fatal error on activation.

    From the website logs i found out the culprit:
    require_once(/var/www/vhosts/example.com/adminpanel/includes/plugin.php): Failed to open stream: No such file or directory in?/var/www/vhosts/example.com/wp-content/plugins/js-support-ticket/js-support-ticket.php?on line 1199

    I’m using the plugin WP Hide & Security Enhancer?to rename and hide the default wp-admin url and your plugin is trying call files with the absolute path using this changed url.

    Apparently i can fix this by only leaving ” $wp_admin_path = ABSPATH . 'wp-admin/includes/admin.php'; “, and this is also for the functions after the one in the error.

    I hope you can give a look into this and fix it soon
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author JoomSky

    (@rabilal)

    Hi,

    Here is quick fix, proper fix we will add in the next version.

    Edit
    ../wp-content/plugins/js-support-ticket/js-support-ticket.php

    find the following lines of codes

    Find
    if(strpos($wp_admin_path, "http") !== false) {
    $wp_admin_path = ABSPATH . 'wp-admin/includes/plugin.php';
    }

    Replace with
    $wp_admin_path = ABSPATH . 'wp-admin/includes/plugin.php';

    Find
    if(strpos($wp_admin_path, "http") !== false) {
    $wp_admin_path = ABSPATH . 'wp-admin/includes/admin.php';
    }

    Replace with
    $wp_admin_path = ABSPATH . 'wp-admin/includes/admin.php';

    Find
    if(strpos($wp_admin_path, "http") !== false) {
    $wp_admin_path = ABSPATH . 'wp-admin/includes/file.php';
    }

    Replace with
    $wp_admin_path = ABSPATH . 'wp-admin/includes/file.php';

    Find
    if(strpos($wp_admin_path, "http") !== false) {
    $wp_admin_path = ABSPATH . 'wp-admin/includes/class-pclzip.php';
    }

    Replace with
    $wp_admin_path = ABSPATH . 'wp-admin/includes/class-pclzip.php';

    Find
    if(strpos($wp_admin_path, "http") !== false) {
    $wp_admin_path = ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';
    }

    Replace with
    $wp_admin_path = ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';

    Find
    if(strpos($wp_admin_path, "http") !== false) {
    $wp_admin_path = ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
    }

    Replace with
    $wp_admin_path = ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';

    Find
    if(strpos($wp_admin_path, "http") !== false) {
    $wp_admin_path = ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php';
    }

    Replace with
    $wp_admin_path = ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php';

    Find
    if(strpos($wp_admin_path, "http") !== false) {
    $wp_admin_path = ABSPATH . 'wp-admin/includes/translation-install.php';
    }

    Replace with
    $wp_admin_path = ABSPATH . 'wp-admin/includes/translation-install.php';

    Find
    if(strpos($wp_site_path, "http") !== false) {
    $wp_site_path = ABSPATH . 'wp-includes/class-phpass.php';
    }

    Replace with
    $wp_site_path = ABSPATH . 'wp-includes/class-phpass.php';
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.