• Resolved bulljustin

    (@bulljustin)


    My client currently has PC 5.11. All related PC plugins are up to date:

    PrivateContent Version 5.11
    There is a new version of PrivateContent available. View version 6.3 details or update now.

    Select PrivateContent – Mail Actions Add-on
    PrivateContent – Mail Actions Add-on Version 1.45

    Select PrivateContent – Secure Links Add-on
    PrivateContent – Secure Links Add-on Version 1.31

    Select PrivateContent – User Data Add-on
    PrivateContent – User Data Add-on Version 2.1

    When I update to PC 6.3, I get the following error:

    Warning: Use of undefined constant PC_DIR – assumed ‘PC_DIR’ (this will throw an Error in a future version of PHP) in /nas/content/staging/scorp/wp-content/plugins/private-content-mail-actions/user_verification.php on line 9

    Warning: include_once(PC_DIR/functions.php): failed to open stream: No such file or directory in /nas/content/staging/scorp/wp-content/plugins/private-content-mail-actions/user_verification.php on line 9

    Warning: include_once(): Failed opening ‘PC_DIR/functions.php’ for inclusion (include_path=’.:/usr/share/pear/php:/usr/share/php’) in /nas/content/staging/scorp/wp-content/plugins/private-content-mail-actions/user_verification.php on line 9

    Fatal error: Uncaught Error: Call to undefined function pc_wpml_translated_pag_id() in /nas/content/staging/scorp/wp-content/plugins/private-content-mail-actions/user_verification.php:10 Stack trace: #0 /nas/content/staging/scorp/wp-includes/class-wp-hook.php(287): pcma_mv_page_check(”) #1 /nas/content/staging/scorp/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /nas/content/staging/scorp/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /nas/content/staging/scorp/wp-includes/template-loader.php(13): do_action(‘template_redire…’) #4 /nas/content/staging/scorp/wp-blog-header.php(19): require_once(‘/nas/content/st…’) #5 /nas/content/staging/scorp/index.php(17): require(‘/nas/content/st…’) #6 {main} thrown in /nas/content/staging/scorp/wp-content/plugins/private-content-mail-actions/user_verification.php on line 10
    There has been a critical error on your website.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    Hello @bulljustin,
    your client is using the Private Content plugin purchased from CodeCanyon, while you’re attempting to upgrade it using the Private Content plugin from the WordPress repository. These two plugins are totally different, even if they have the same name.

    If you have already overwritten the original plugin, restore all the files with the correct plugin from CodeCanyon.

    In the future, make sure to update your plugin using the CodeCanyon repository, not the WordPress one.

    Let me know, please.

Viewing 1 replies (of 1 total)
  • The topic ‘Use of undefined constant PC_DIR’ is closed to new replies.