Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1003003

    Using this feature is reserved for Super Admins
    You, unfortunately, don’t have the necessary permissions.

    With Pantheon Hosting, I do not have Super Admin privileges per se due to how the multi environments are set up from dev to test to production. As a PHP developer, I’ve been trying to find ways to allow me to import the settings file from my dev environment, but it’s giving me the above error. Please help me resolve this as soon as possible.

    #1003147

    Hey szimmerdesign76,

    Are you getting that error when trying to import theme settings? How can we access the site without login details?

    Best regards,
    Rikard

    #1003309

    Yes, sir.
    I’ll update the private content.

    #1003667

    Hi,

    Please add this code to the child theme functions.php:

    
    add_filter('avf_file_upload_capability', 'avia_file_upload_capability', 10, 1);
    function avia_file_upload_capability($cap)
    {
    	$cap = 'edit_posts';
    	return $cap;
    }
    

    If you don’t use a child theme I’d recommend to create a small plugin, otherwise the code will be removed on every theme update.

    You can use this code for the plugin:

    
    <?php
    /*
    Plugin Name: Enfold Custom Code
    Description: Enfold Custom Code
    Version:     1.0
    Author:      InoPlugs
    Plugin URI:  https://inoplugs.com
    Author URI:  https://inoplugs.com
    */
    
    add_filter('avf_file_upload_capability', 'avia_file_upload_capability', 10, 1);
    function avia_file_upload_capability($cap)
    {
    	$cap = 'edit_posts';
    	return $cap;
    }
    

    Then upload this text file via ftp to wp-content/plugins/. Afterwards go to the wordpress admin panel > Plugins and activate the new plugin.

    Best regards,
    Dude

    #1003706

    Awesome. It fixed the issue; however, a problem is coming up after I seemingly successfully upload the theme settings file. The settings page doesn’t update with the new settings.

    #1004307

    Hi,

    The problem probably is only the super admin can use the WP-Import script/function to import the data. If you don’t have the privileges of a super admin the WP-Import script will abort and the settings won’t be imported.

    I guess it would be easier to import/export the settings with a database tool like phpMyAdmin. You just need to export all fields starting with “avia_options” (without the quotes). Then import them again on your new server, go to the settings page and re-save the settings. If necessary you also need to re-upload the custom font files.

    Best regards,
    Dude

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.