dutuka
Forum Replies Created
-
Thank you for your help. It works now.
Thank you for the explaination, i try to use “Local Directory” and get this error:
[2024-04-04 21:06:29] Setting up [2024-04-04 21:06:30] Error: (1) Uncaught UnexpectedValueException: FilesystemIterator::__construct(https://sub.domain.com/s/): Failed to open directory: not implemented in /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/src/class-ss-plugin.php:406 Stack trace: #0 /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/src/class-ss-plugin.php(406): FilesystemIterator->__construct() #1 /var/www/sub.domain.com/htdocs/wp-includes/class-wp-hook.php(324): Simply_Static\Plugin->maybe_clear_directory() #2 /var/www/sub.domain.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /var/www/sub.domain.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/src/tasks/class-ss-setup-task.php(65): do_action() #5 /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/src/class-ss-archive-creation-job.php(150): Simply_Static\Setup_Task->perform() #6 /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php(516): Simply_Static\Archive_Creation_Job->task() #7 /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php(333): WP_Background_Process->handle() #8 /var/www/sub.domain.com/htdocs/wp-includes/class-wp-hook.php(324): WP_Background_Process->maybe_handle() #9 /var/www/sub.domain.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #10 /var/www/sub.domain.com//htdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #11 /var/www/sub.domain.com//htdocs/wp-admin/admin-ajax.php(192): do_action() #12 {main} thrown in /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/src/class-ss-plugin.php on line 406
I dont get this error when using “Zip Archive”, only with “Local Directory”
How can i fix this? Thanks
Forum: Plugins
In reply to: [mosparo Integration] Woocommerce and multisiteThank you for your reply,
I hope you can have a solution to apply global changes to all subsites (for multisite network) too.
Actually configure mosparo in every subsite is not a problem, because i can set up mosparo in one subsite as template and clone this template subsite to multiple new subsites.
But if i change some settings in mosparo sever (or move to a new server), i will need to configure mosparo plugin in all subsites and many erffort will be needed to solve it, its not effective if i have a large amount of subsites.
Best regards
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] Critical error on edit order page with v2.2.1Hello Joost,
Thank you for your fast support, i installed your provided trunk and it fixed this issue.
Forum: Plugins
In reply to: [Code Snippets] Activate snippet network wide not workingThanks. Im on 3.4.2 now and still have this issue, can not activate snippet with option “Allow this snippet to be activated on individual sites on the network” checked.
Error: Could not update snippet. Request failed with status code 500
Forum: Themes and Templates
In reply to: [GeneratePress] Register all css file in child theme subfolderThank you, I tested the code and got: [HTTP/2 500 Internal Server Error]
Forum: Themes and Templates
In reply to: [GeneratePress] Register all css file in child theme subfolderThank you for your infos. My server uses HTTP/2, I want to maintain custom css in a subfolder separated in several css files. I need a code snippet, which automatically include every css file i create in that subfolder.
I found this code snippet from stackexchange, which works for that user, but does not work on my site:
foreach( glob( get_template_directory(). '/css/*.css' ) as $file ) { $file = str_replace(get_template_directory(), '', $file); echo ( get_template_directory_uri() . $file); // $file contains the name and extension of the file wp_enqueue_style( $file.'style', get_template_directory_uri() . $file); }
At the moment only this code snippet works for me, but I will have to register every css file i create in the subfolder:
add_action( 'wp_enqueue_scripts', function() { wp_enqueue_style( 'generatepress-custom', get_stylesheet_directory_uri() . "/custom-css/custom.css", array(), filemtime( get_stylesheet_directory() . "/custom-css/custom.css" ) ); wp_enqueue_style( 'generatepress-custom1', get_stylesheet_directory_uri() . "/custom-css/custom1.css", array(), filemtime( get_stylesheet_directory() . "/custom-css/custom1.css" ) ); } );
- This reply was modified 1 year, 5 months ago by dutuka.
Forum: Themes and Templates
In reply to: [GeneratePress] Register all css file in child theme subfolderThanks for the link, there is no other enqueue code in my functions.php, but i consider to use only one css file, its better for performance but not so comfort to maintain.
Forum: Themes and Templates
In reply to: [GeneratePress] Register all css file in child theme subfolderIm trying to test around but still not work.
Forum: Themes and Templates
In reply to: [GeneratePress] Register all css file in child theme subfolderIt is the entire code snippet, i put it in the functions.php file, all the .php files in /custom-php/ folder in the child theme will be included.
$filepath = dirname(FILE).'/custom-php/'; $files = scandir($filepath); foreach ($files as $file) { // match the file extension to .php if (substr($file,-4,4) == '.php') {include($filepath.$file);} }
Now i want to achieve the same for all .css files in the /custom-css/ folder in the child theme.
- This reply was modified 1 year, 5 months ago by dutuka.
Forum: Themes and Templates
In reply to: [GeneratePress] Register all css file in child theme subfolderHi ernandoazarcon2,
thank you for your help, I just tested the code, replace my custom folder path, unfortunately the code does not work.
I use this snippet to include all .php files in custom folder:
$filepath = dirname(FILE).'/custom-php/'; $files = scandir($filepath); foreach ($files as $file) { // match the file extension to .php if (substr($file,-4,4) == '.php') {include($filepath.$file);} }
May be you can combine this to enqueue all .css files in custom folder.
Best thanks in advanced.