-
AuthorPosts
-
August 29, 2018 at 6:57 am #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.August 29, 2018 at 2:08 pm #1003147Hey szimmerdesign76,
Are you getting that error when trying to import theme settings? How can we access the site without login details?
Best regards,
RikardAugust 29, 2018 at 11:26 pm #1003309Yes, sir.
I’ll update the private content.August 30, 2018 at 3:18 pm #1003667Hi,
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,
DudeAugust 30, 2018 at 4:26 pm #1003706Awesome. 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.
September 1, 2018 at 11:42 am #1004307Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.