Install Extensions
Install Extensions install alert: http://screencast.com/t/HJAuuMqPWn
Actually I've also had this problem using the direct FS_METHOD in my config :
define( 'FS_METHOD', 'direct' );
Just had a look at my Apache error logs while trying to download an extension :
PHP Notice: Undefined index: media in /var/www/unyson/web/app/plugins/unyson/framework
/core/components/extensions/manager/class--fw-extensions-manager.php on line 916, referer:
http://localhost/unyson/web/wp/wp-admin/admin.php?page=fw-extensions
So I tried adding this line : if(isset($installed_extensions[$current_parent])) in class--fw-extensions-manager.php on line 916 before the while() loop
Now I have an error in the alert :
Cannot create temporary directory: /var/www/unyson/web/wp/var/www/unyson/web/app/tmp/fw-extension-download
So it looks like a path problem, since my project is /var/www/unyson/ (I'm using the bedrock WP stack), it should look into /var/www/unyson/web/app and it's doubling the path into /var/www/unyson/web/wp/var/www/unyson/web/app/
I could solve the extensions installation problem by modifying plugins/unyson/framework/helpers/class-fw-wp-filesystem.php
returning return $relative_path;
instead of return $wp_filesystem_abspath . $relative_path;
solved it all.
in the functions : real_path_to_filesystem_path and filesystem_path_to_real_path (line 89 and line 111)
I guess it's not the way to solve it but it might help you pinpoint the problem.
Also, I had to give writing permissions into the plugins/unyson folder... which might not be possible with a regular WP install...
Any update on this @moldcraft ?
@ierpe , not yet. I will try to fix it in this weekend.
sweet good luck!
awesome guys. Thanks a million for all your hard work :+1: :dancer:
@sergiubagrin Install Extensions install alert: http://screencast.com/t/HJAuuMqPWn
Fixed in https://github.com/ThemeFuse/Unyson/commit/ef0466b133b5b69bfe1e7d6fe8bf5dc6bc818710
@ierpe , please update to v2.1.2
-
PHP Notice: Undefined index: media in /var/www/unyson/web/app/plugins/unyson/framework /core/components/extensions/manager/class--fw-extensions-manager.php on line 916Fixed in https://github.com/ThemeFuse/Unyson/commit/8b611d21e519ec97c146d7704979ea5f1e2c9e0c
-
I could solve the extensions installation problem by modifying
plugins/unyson/framework/helpers/class-fw-wp-filesystem.phpreturningreturn $relative_path;instead ofreturn $wp_filesystem_abspath . $relative_path;This is not a good solution.
I tried on my side and I get this:
fw_print(FW_WP_Filesystem::real_path_to_filesystem_path(fw_get_framework_directory()));-
With
return $wp_filesystem_abspath . $relative_path;I get/var/www/wordpress/public_html/wp-content/plugins/unyson/framework -
With
return $relative_path;I get/wp-content/plugins/unyson/frameworkwhich is not correct
Please try to debug more
helpers/class-fw-wp-filesystem.php FW_WP_Filesystem::real_path_to_filesystem_path(), maybe we didn't took into consideration some special cases. -
-
define( 'FS_METHOD', 'direct' );Also, I had to give writing permissions into the plugins/unyson folderFor this case to work, I changed the temporary directory location to be in the plugin directory https://github.com/ThemeFuse/Unyson/commit/bbe8e22ef61ba620b076638f6b1a132eed05f7b3
I tried
define( 'FS_METHOD', 'direct' );and chmod 777 forplugins/unyson/and it works now. No ftp credentials is required when installing extensions
I just installed the latest version and get a new error : cannot create temporary directory in wp-content/plugins/unyson-master/tmp
@kgzv This error appeared after updating to v2.1.2 or you installed the plugin for the first time?
Also please give us more details:
- What OS do you have?
- How you installed the plugin (from wordpress.org or downloaded the zip from github) ?
- When you install plugins from wordpress.org: you enter the ftp credentials or the installation works right away?
- Maybe other details...
Installed the plugin for the first time. Downloaded the zip-file and than uploaded through the wordpress plugin upload. Using OS Windows 7.
Verzonden vanaf mijn Huawei mobiele telefoon
moldcraft [email protected]:
@kgzv This error appeared after updating to v2.1.2 or you just installed the plugin for the first time?
Also please give us more details:
- What OS do you have?
How you installed the plugin (from wordpress.org or downloaded the zip from github) ?When you install plugins from wordpress.org: you enter the ftp credentials or the installation works right away?Maybe other details...
— Reply to this email directly or view it on GitHub.
@moldcraft :
Please try to debug more helpers/class-fw-wp-filesystem.php FW_WP_Filesystem::real_path_to_filesystem_path(), maybe we didn't took into consideration some special cases.
Ok I'll have a look. For info I am using the WP Bedrock stack, where the folder structure is a little different than a regular WP install
Hello, First of all, thank you for the AWESOME work done here ! I'm developing the Wordpress version of my HTML template with Unyson and it's so easy !!!! So many options, great documentation, just perfect !!
As Github nooby, I hope I'm in the right place, when I try to install extensions, I got this :

I installed the latest version, so let me know if you have any clue, I'm ready to help !! :)
2F
Hello @2Fwebd
Thank you. We are glad you like it.
When you install an extension, the framework makes one request to the github api to fetch the extension latest version and the zip url. But the api has limit per IP 60 requests per hour. There is only one solution: just wait one hour until the limit will expire.
Thank you for the explanations here !! Ok I'll do it manually :P
@moldcraft
@ierpe , please update to v2.1.2
PHP Notice: Undefined index: media in /var/www/unyson/web/app/plugins/unyson/framework /core/components/extensions/manager/class--fw-extensions-manager.php on line 916
Fixed in 8b611d2
The problem persists for me with v2.1.4...
[Tue Dec 09 15:18:18.715304 2014] [:error] [pid 16897] [client 127.0.0.1:54753] PHP Notice:
Undefined index: media in
/var/www/piks/web/app/plugins/unyson/framework/core/components/extensions/manager/
class--fw-extensions-manager.php on line 982, referer: http://loc-piks.org/wp/wp-admin/
admin.php?page=fw-extensions
Also, I have child extensions in my parent and child theme, but they do not appear in the unyson dashboard, and they aren't working
Just had a look at my Apache error logs while trying to download an extension :
PHP Notice: Undefined index: media ...
Which extension are you trying to download?
Also, I have child extensions in my parent and child theme, but they do not appear in the unyson dashboard, and they aren't working
Docs. Checkout the second and third step.
Undefined index: media in /var/www/piks/web/app/plugins/unyson/framework/core/components/extensions/manager/ class--fw-extensions-manager.php on line 982
I can't reproduce that notice.
In the image you see a notice, I added it intentionally to show that my installation has WP_DEBUG true and I see notices on the page when they happen.
// file: unyson/framework/core/components/extensions/manager/class--fw-extensions-manager.php starting with line 978
// make sure to activate parents
foreach ($activate_extensions as $extension_name => $x) {
$current_parent = $extension_name;
while ($current_parent = $installed_extensions[$current_parent]['parent']) {
$db_active_extensions[ $current_parent ] = array();
}
}
trigger_error('Test notice', E_USER_NOTICE);
I was trying to install the Sliders extensions. But it did not work because of this error. Right now I'm trying to test Unyson as a plugin, in the Bedrock WP stack... maybe some problems come from here (although I don't really see why)
I was trying to install the Sliders extensions.
The screenshot I posted above is also the Sliders Install page.