[29-Aug-2016 21:53:50 UTC] PHP Notice: Undefined index: action in /srv/www/verona.dev/current/web/app/themes/fatmoon/advance/inc/Apollo13_Image_Resize.php on line 250
[29-Aug-2016 21:53:50 UTC] PHP Stack trace:
[29-Aug-2016 21:53:50 UTC] PHP 1. {main}() /srv/www/verona.dev/current/web/wp/wp-admin/admin-ajax.php:0
[29-Aug-2016 21:53:50 UTC] PHP 2. require_once() /srv/www/verona.dev/current/web/wp/wp-admin/admin-ajax.php:22
[29-Aug-2016 21:53:50 UTC] PHP 3. require_once() /srv/www/verona.dev/current/web/wp/wp-load.php:44
[29-Aug-2016 21:53:50 UTC] PHP 4. require_once() /srv/www/verona.dev/current/web/wp-config.php:9
[29-Aug-2016 21:53:50 UTC] PHP 5. include() /srv/www/verona.dev/current/web/wp/wp-settings.php:387
[29-Aug-2016 21:53:50 UTC] PHP 6. Fatmoon_Apollo13->start() /srv/www/verona.dev/current/web/app/themes/fatmoon/functions.php:11
[29-Aug-2016 21:53:50 UTC] PHP 7. require_once() /srv/www/verona.dev/current/web/app/themes/fatmoon/advance/fatmoonApollo13.php:167
This is happening when the site renders and before opening the General Settings -> Font Settings side bar.Does the Fatmoon theme, or any of the Verona plugins from the demo import create files or folders outside of their given scope, or make modifications to wp-config.php and other files in the app directory?Note: Some plugins may create files or folders outside of their given scope, or even make modifications to wp-config.php and other files in the app directory. These files should be added to your .gitignore file as they are managed by the plugins themselves, which are managed via Composer. Any modifications to wp-config.php that are needed should be moved into config/application.php.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
It looks like your notice is connected to images. However I don't know what connection it would have with fonts. It may just be side effect.
With kind regards.
Alternatively I could let you know the trellis/bedrock configuration I'm using to see if you can reproduce locally.
Which is best for you?
Thanks,
Paul
Sure I can help you debug it, but it looks like some constants are setup different in your environment.
Give me info when you will have it online.
With kind regards.
When I was looking last night, it looks like there's an error trying to load the redux-framework css file.
GET http://staging.aislingandpaul.rocks/wp/wp-admin/customize.php?return=%2Fwp%2Fwp-admin%2Fusers.php http://staging.aislingandpaul.rocks/wp/srv/www/aislingandpaul.rocks/releases/20160911200745/web/app/plugins/redux-framework/ReduxCore/inc/extensions/customizer/extension_customizer.css?ver=1473684612
Looks like it's attempting to get it from the wrong base url.
Bedrock installs has all the wordpress stuff under the wp directory, while nginx is serving all the content from /srv/www/aislingandpaul.rocks
Thanks
This CSS file path you pointed out is generated in wp-content\plugins\redux-framework\ReduxCore\inc\extensions\customizer\extension_customizer.php line ~85 It looks that these redirects on your server breaks something, but I don't know what.
It may also be, that this part of Redux is poorly written, as for this CSS code depends on _dir location which can lead to such error. And in other files it uses path defined in
ReduxFramework::$_url
.However I might be wrong here.
With kind regards.
Also the environment variables are all defined here: https://github.com/roots/bedrock/blob/master/config/application.php
I figured the code should be making use of WP_SITEURL or WP_CONTENT_URL
Thanks
Have you tried setting up your site without this redirects to different(then default) directories?
With kind regards.
https://roots.io/bedrock/docs/folder-structure/
I've tested on a docker container with the default directory structure and it works. Do you think you could have a chat to the redux developers to see if there are known issues with deployment in a bedrock install?
Also when will the next version with the non-customised redux be out?
Thanks
Only thing I can do is to try to debug on your staging server what exactly is wrong with those paths, but I would need FTP access to it if possible.
With kind regards.
I have mad such change in plugins\redux-framework\ReduxCore\inc\extensions\customizer\extension_customizer.php line ~85 and it started to work: to We will get back to this.
With kind regards.
Much appreciated!
I've upgraded to the latest version and am now seeing something very similar in the extension_advanced_customizer.php contained in the fatmoon theme.
It's giving a 404 for http://staging.aislingandpaul.rocks/wp/srv/www/aislingandpaul.rocks/releases/20160928221011/web/app/themes/fatmoon/advance/advanced_customizer/extension_advanced_customizer.js?ver=1.1.04
I tried to do the same as above, but the urls that it needs are actually the fatmoon theme base url, not the Redux Framework plugin base url.
The javascript it's trying to load is in the theme.
find . -name 'extension_advanced_customizer*' ./web/app/themes/fatmoon/advance/advanced_customizer/extension_advanced_customizer.js ./web/app/themes/fatmoon/advance/advanced_customizer/extension_advanced_customizer.php
So far I've got:-
Lines 85-89 in extension_advanced_customizer.php
if ( empty( $this->_extension_dir ) ) { //$this->_extension_dir = trailingslashit( str_replace( '\\', '/', dirname( __FILE__ ) ) ); //$this->_extension_url = site_url( str_replace( trailingslashit( str_replace( '\\', '/', ABSPATH ) ), '', $this->_extension_dir ) ); $this->_extension_url = ReduxFramework::$_url.'advance/advanced_customizer/'; }
Which is referenced at line 170
function enqueue_controls_css() { ... wp_enqueue_script( 'redux-extension-advanced-customizer', $this->_extension_url . 'extension_advanced_customizer.js', array( 'jquery', 'redux-js' ), ReduxFramework_extension_advanced_customizer::$version . '4', true ); }
Is there a variable I can use for the theme base url?
Also did you manage to speak to the Redux Framework guys?
Thanks,
Paul
However this time we have copied their buggy code, so lets try to fix it:-)
Go to line ~87 in fatmoon\advance\advanced_customizer\extension_advanced_customizer.php
and change this: to Try it and tell me how it is.
With kind regards.
With kind regards.
Thanks for raising the issue with Redux. Btw this isn't deployed in a docker container. I moved away from that after thinking about how the database layer would work. trellis/bedrock is installed on VMs instead. Regardless, I think your observations about their code are valid
I'll be interested to see how they respond.
Thanks again.