{"action":"created","issue":{"url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2425","labels_url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2425/labels{/name}","comments_url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2425/comments","events_url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2425/events","html_url":"https://github.com/reduxframework/redux-framework/issues/2425","id":90504289,"number":2425,"title":"extensions_init.php does not work for v3.5.4.3","user":{"login":"sarpdoruk","id":844954,"avatar_url":"https://avatars.githubusercontent.com/u/844954?v=3","gravatar_id":"","url":"https://api.github.com/users/sarpdoruk","html_url":"https://github.com/sarpdoruk","followers_url":"https://api.github.com/users/sarpdoruk/followers","following_url":"https://api.github.com/users/sarpdoruk/following{/other_user}","gists_url":"https://api.github.com/users/sarpdoruk/gists{/gist_id}","starred_url":"https://api.github.com/users/sarpdoruk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarpdoruk/subscriptions","organizations_url":"https://api.github.com/users/sarpdoruk/orgs","repos_url":"https://api.github.com/users/sarpdoruk/repos","events_url":"https://api.github.com/users/sarpdoruk/events{/privacy}","received_events_url":"https://api.github.com/users/sarpdoruk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-23T22:21:15Z","updated_at":"2015-06-23T22:54:05Z","closed_at":"2015-06-23T22:54:05Z","body":"In `extensions-init.php` the first 2 lines is like this;\r\n\r\n    // All extensions placed within the extensions directory will be auto-loaded for your Redux instance.\r\n    Redux::setExtensions( 'my_theme', dirname( __FILE__ ) . '/extensions/' );\r\n\r\nand here is the related method from Redux Core;\r\n\r\n    public static function setExtensions( $opt_name, $path ) {\r\n                if ( is_dir( $path ) ) {\r\n                    $path   = trailingslashit( $path );\r\n                    $folder = str_replace( '.php', '', basename( $path ) );\r\n                    if ( file_exists( $path . 'extension_' . $folder . '.php' ) ) {\r\n                        self::checkExtensionClassFile( $opt_name, $folder, $path . 'extension_' . $folder . '.php' );\r\n                    }\r\n    ...\r\n\r\nIf you look at the first 4 lines of the method you can easily see that `file_exists( $path . 'extension_' . $folder . '.php' )` outputs `/path/to/the/wordpress/theme/admin/redux-extensions/extensions/extension_extensions.php`\r\n\r\n`Redux::setExtensions( 'my_theme', dirname( __FILE__ ) . '/extensions/' );` line in `extensions-init.php`  should auto-load all the extensions in the `extensions` folder but instead it tries to load `/path/to/the/wordpress/theme/admin/redux-extensions/extensions/extension_extensions.php` which does not make any sense.\r\n\r\nI found the solution;\r\nIf I change the 2nd line in `extensions-init.php` to `Redux::setExtensions( 'my_theme', dirname( __FILE__ ) . '/extensions/my_extension_folder' );` it works fine.\r\n\r\nNow here is my question; Am I supposed to edit this file and write `Redux::setExtensions( 'my_theme', dirname( __FILE__ ) . '/extensions/my_extension_folder' );` there or is it just a bug you need to fix ?\r\n\r\nIn earlier versions I was using extension-loader and it worked just fine because content of the `extensions-init.php` was different."},"comment":{"url":"https://api.github.com/repos/reduxframework/redux-framework/issues/comments/114666504","html_url":"https://github.com/reduxframework/redux-framework/issues/2425#issuecomment-114666504","issue_url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2425","id":114666504,"user":{"login":"sarpdoruk","id":844954,"avatar_url":"https://avatars.githubusercontent.com/u/844954?v=3","gravatar_id":"","url":"https://api.github.com/users/sarpdoruk","html_url":"https://github.com/sarpdoruk","followers_url":"https://api.github.com/users/sarpdoruk/followers","following_url":"https://api.github.com/users/sarpdoruk/following{/other_user}","gists_url":"https://api.github.com/users/sarpdoruk/gists{/gist_id}","starred_url":"https://api.github.com/users/sarpdoruk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarpdoruk/subscriptions","organizations_url":"https://api.github.com/users/sarpdoruk/orgs","repos_url":"https://api.github.com/users/sarpdoruk/repos","events_url":"https://api.github.com/users/sarpdoruk/events{/privacy}","received_events_url":"https://api.github.com/users/sarpdoruk/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T22:54:05Z","updated_at":"2015-06-23T22:54:05Z","body":"Yep, It works with the latest version. :+1: \r\n\r\nBtw, you should update the version at Redux Builder too.\r\n\r\nThank you."}}