Forum Replies Created
-
AuthorPosts
-
July 21, 2025 at 12:43 pm in reply to: CSS missing after CI deployment / sharing dynamic CSS with multiple instances #1487069
Thanks very much Ismael for your list. I will now use
wp --user="admin.user" eval "do_action('avia_ajax_after_save_options_page');"
and see how it goes.As far as I see, in the context of wpcli execution, not all possible callbacks for
‘avia_ajax_after_save_options_page’ are present, only these are executed:
Function: avia_generate_stylesheet
Method: av_responsive_images->handler_ava_reset_db_options
Function: avia_reset_merged_assets
Method: aviaPostCssManagement->handler_ava_reset_css_files
Due to lacking context, the handler_* calls do nothing in this case, but I will see how it goes with this workaround.Regards Ulrich
July 17, 2025 at 4:52 pm in reply to: CSS missing after CI deployment / sharing dynamic CSS with multiple instances #1486935Hi Ismael,
our containers share both database and upload directory. So only if a plugin or theme would create ephemeral data in its plugin directory ( not shared between containers) it may become a problem, but this is considered bad practice anyway.
So we have in wp-options:
avia_stylesheet_dynamic_versionenfold (hash)
avia_stylesheet_dynamic_versionenfold_child (hash)
avia_stylesheet_dynamic_versionenfold-child (hash)
avia_stylesheet_existsenfold true
avia_stylesheet_existsenfold_child true
avia_stylesheet_existsenfold-child trueIf doing wp eval ‘avia_generate_stylesheet();’, only one option value changes ( avia_stylesheet_dynamic_versionenfold_child ) , and only one file is refreshed ( wp-content/uploads/dynamic_avia/enfold_child.css )
If saving options manually, a lot more files are refreshed :
./wp-content/uploads/dynamic_avia/avia-gutenberg-dynamic-enfold_child.css
./wp-content/uploads/dynamic_avia/avia-merged-styles-15236a5ae6d86a1f9e74a9ba518a7c4c—68790b12ce27d.css
./wp-content/uploads/dynamic_avia/enfold_child.css
./wp-content/uploads/dynamic_avia/avia_posts_css/(*.css) – many filesSo currently we are running wp eval ‘avia_generate_stylesheet();’ upon every deployment, and so far have not seen de-synced css. But there have been only 3 deployments – not enough to be sure it works.
I would still like to know whether there are better/more reliable ways to refresh the necessary CSS files. I could as well run mulitple WPCLI commands, if a developer would tell me which hook, action or function to use after deployment.
regards
ulrichJuly 16, 2025 at 12:24 pm in reply to: CSS missing after CI deployment / sharing dynamic CSS with multiple instances #1486867PS: I just did a simple wp eval ‘avia_generate_stylesheet()’
This re-created
./wp-content/uploads/dynamic_avia/enfold_child.cssWill that be sufficient to avoid the site looking broken? Since currently the “broken” problem did not occur, I could not verify that this is what is needed.
July 16, 2025 at 11:13 am in reply to: CSS missing after CI deployment / sharing dynamic CSS with multiple instances #1486864Thanks Ismael,
I think I need to better understand the root cause of the “missing CSS ” issue to find a solution.
Since our uploads folder is persistent across deployments, I would expect the CSS would still work, but very often (not every time) it does not and the site looks broken.
Why would Enfold not find and use the existing old dynamic/cached CSS and require the re-save process?Regarding the trigger: you list a couple of activities causing the CSS to be re-saved. All these are , as far as I see, manual tasks to be done in the Admin GUI backend.
Is there no way to achieve the re-save programatically ( wp-cli ) ? If not, this would be a very desirable feature.Otherwise, we could try to find a better workaround. Which wpcli commands could be used to trigger CSS regeneration? I could then simply do a wp eval ‘do_action(“the_hook_that_triggers_css_saving”);
Other commands that come to mind:
directly calling avia_generate_stylesheet(); with wp eval ?
re-saving options with wp option update … , if that will trigger the css?
wp option update avia_options “$(wp option get avia_options)”You problably know best what is the most promising path …
Regards
UlrichJuly 15, 2025 at 11:25 am in reply to: LayerSlider Admin page loads forever – no slide editing possible, pending update #1486789Hi again,
meanwhile we have migrated our site into a different environment. There, the problems did not occur again.
So even though we did not find out the cause, we can close the case . The new environment brings up a different problem, but I will address it separately ;)
Thank you, best regards,
UlrichJuly 7, 2025 at 11:18 am in reply to: LayerSlider Admin page loads forever – no slide editing possible, pending update #1486392Unfortunately not, even with debug enabled. As you may have seen in our environment, it looks as if the edit page simply does not load completey or does not render completely. Are there any debug flags that can be set for the React / JS part of the setup? Or will there be an update of the builtin layerslider version in the near future? If so, we could put the issue on hold for a short period.
July 3, 2025 at 11:48 am in reply to: LayerSlider Admin page loads forever – no slide editing possible, pending update #1486273OK, I will paste the data in the secret field. Your user name has admin privileges in the staging site. This staging area is exclusively for you so you can change things etc. but anyway be careful what you do and do not snoop around on the server, since the staging ( done with wp-staging) is in the same file system and database as the main site.
I won’t be available tomorrow, so it would be good if you could just test the access to the test site today, regardless of when you will actually work on it . So we can ensure that you can really access it. Thanks!
Regards
UlrichJune 30, 2025 at 12:47 pm in reply to: LayerSlider Admin page loads forever – no slide editing possible, pending update #1486152Like I already said, the problem is also on a staging site that is a clone of the live site. Actually the clone was performed with WP-Staging ( problem still present) and then all pending Updates (Enfold and others) were performed in the clone (problem still present). What exactly do you mean by “export your project”?
If you mean exporting all sliders, and re-importing: I just did so, with no success:
1 – importing a zip of sliders into the staging clone with 6.x Enfold containing LS 7.12.x
2- importing a zip of sliders into the upgraded staging clone 7.1.1 Enfold containing LS 7.14.4
3- disabling all plugins that might interfere with editing, like ACF, RankMath , contentViews,None of these steps were successful. It is still not possible to edit any of the slides. I include a site report in the private area.
June 26, 2025 at 11:41 am in reply to: LayerSlider Admin page loads forever – no slide editing possible, pending update #1485946Hi Rikard,
like I said in my initial post:
– the problem is with BOTH 7.1.1 and 6.x
– we use the included LS version ( bundled LS version numbers were mentioned in the post, ( Enfold 6.x / LS 7.12.4 , and Enfold 7.1.1 / LS 7.14.4 )Also, on both sites we are on the latest php 7.4 version, matching the requirements of WP, enfold and LS.
Regards Ulrich@günter – no news on this after such a long time? Digging up this thread from the past :-)
The current Update Documentation simply refers to the Envato plugin. So yes, there IS the envato plugin, but they explicitly say:
“Authors are encouraged to implement this plugin in their items so that customers have a reliable and consistent experience across products.”The Envato plugin is not in the WP repository and so can also not be managed via wpcli. So for our aim to manage plugins completely via WPCLI, this doesn’t help. From all 50+ plugins or themes I manage for different sites, there are just two (yours and one more I won’t name) that can not be managed this way. WPCLI does not appear on the roadmap/upcoming-fixes page, but command line updates are crucial for automated workflows,
Regards
Ulrich -
AuthorPosts