samrot
Forum Replies Created
-
Hi @tanvir101 ,
Thanks for your response.
I did some additional debugging and I believe the issue may be related to custom post types.
In my setup, the frontend dashboard is used to manage a CPT, not regular WP posts.
The issue appears only from 4.2.9 onward. In 4.2.8 the Edit button appears correctly.
From what I can see, the edit permission flow now relies on current_user_can( ‘edit_post’, $post_id ) for published posts. For published posts, WordPress requires edit_published_posts.
I noticed that WPUF has a capability helper/filter that appears to grant edit_published_posts to post authors, but it seems to have a hardcoded check for:
‘post’ !== $post->post_type
Because of that, the temporary permission grant appears to apply only to the default “post” post type, not to custom post types managed through WPUF.
This would explain the behavior:
- Draft items still show Edit
- Published items do not show Edit for non-admin authors
- Admin users still see Edit
- Rolling back to 4.2.8 fixes it
Could you please test the issue using:
- A custom post type
- A non-admin author user
- A published item created by that user
- The WPUF frontend dashboard/edit flow
It seems the hardcoded post type check may need to support WPUF-managed custom post types, or be filterable.
Please let me know if this helps reproduce it.
Thanks.
Thank you @mr2p for your support!
Forum: Plugins
In reply to: [LiteSpeed Cache] Litespeed blocking cron jobs to runThe cron jobs are set to run at server level every 15 minutes by this command:
wget -O /dev/null -o /dev/null https://our_domain.com/wp-cron.php?doing_wp_cronAnd we have set the:
define('DISABLE_WP_CRON', true);on the wp-config file.
When the litespeed plugin is disabled everything runs fine every 15 minutes but when is activated the tasks won’t run on time and start skipping schedules.
Forum: Plugins
In reply to: [LiteSpeed Cache] Litespeed blocking cron jobs to runAlmost nothing.
This is before opening the link:
https://drive.google.com/file/d/1Iidn3i6gaJ4COZL2mE9c6MENCOLfrsrj/view?usp=sharing
This is after:
https://drive.google.com/file/d/1vDUw9Qfo7z-NMozf2GeSmoAksxhjZMOP/view?usp=sharing
As you can see only onle one action was executed from a hook related directly to WP.Looking forward to your comments to understand how can we fix this.
Thank you
Not sure how to test if the event date value is affected by the timezone.
The only way I’ve managed to make it work is by changing this line:
if ($event_start_date && new DateTime( $event_start_date ) <= new DateTime("-2 days") ) {This way by substracting 2 days it removes the button when the date is up to today or even today.
Not sure why this works, it doesn’t make sense.
Yeap, it’s working fine, thanks Phi!
The only thing is that, eventhough I see the equal symbol in the code (‘<=’), if the date of the event is today then the register button dissapears as well and it shouldn’t (registration should be available up to and including the date of the event).
Can this be related to timezone? The timezone on WP is set correctly but not sure what timezone does the ‘new DateTime’ is taking into account to make the comparison. If so, how can the correct timezone be set on the code?
Something like:
date_default_timezone_set("America/Los_Angeles");Can the time from another custom field be taken into account as well (event start time)?
Thank you!!
Forum: Plugins
In reply to: [LiteSpeed Cache] Litespeed blocking cron jobs to runYes, these are some of those tasks I have in wp control plugin…
https://drive.google.com/file/d/1TmC20MlmY6H9iouKGa3ythH27i-a8-Qa/view?usp=sharing
As soon as litespeed plugin is disabled all this tasks start running on time.
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Export Clients as columnsJIC anyone have this same problem it turned out it was a cookies problem, once deleted cookies from the website, the problem was solved
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Export Clients as columnsok, submitted 🙂
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Export Clients as columnsPerfect, thx!
When I try to export client as columns I get the following error:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in (…)/plugins/woocommerce-order-export/classes/formats/storage/class-woe-formatter-storage-summary-session.php:47 Stack trace: #0 (…)/plugins/woocommerce-order-export/classes/formats/class-woe-formatter-xls.php(103): WOE_Formatter_Storage_Summary_Session->load() #1 (…)/plugins/woocommerce-order-export/classes/core/class-wc-order-export-engine.php(214): WOE_Formatter_Xls->__construct() #2 (…)/plugins/woocommerce-order-export/classes/core/class-wc-order-export-engine.php(468): WC_Order_Export_Engine::init_formater() #3 (…)/plugins/woocommerce-order-export/classes/admin/tabs/ajax/trait-wc-order-export-admin-tab-abstract-ajax-export.php(25): WC_Order_Export_Engine::build_file() #4 (…)/plugins/woocommerce-order-export/classes/class-wc-order-export-admin.php(540): WC_Order_Export_Admin_Tab_Abstract->ajax_preview() #5 (…)/wp-includes/class-wp-hook.php(324): WC_Order_Export_Admin->ajax_gate() #6 (…)/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 (…)/wp-includes/plugin.php(517): WP_Hook->do_action() #8 (…)/wp-admin/admin-ajax.php(192): do_action() #9 {main} thrown in (…)/plugins/woocommerce-order-export/classes/formats/storage/class-woe-formatter-storage-summary-session.php on line 47
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Export Clients as columnsGreat, thx!
- Can you do the same for the xls version? (add a Title “Total” to the $summary_row)
- The xls version says it has to be exported “w/o Progressbar”. Is this exported automatically this way when exported as an scheduled job or from the profile tab?
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Export Clients as columnsIncredible! Thank you.
From this reply I still have two more questions…
2. I updated 2nd code (for CSV) at page https://docs.algolplus.com/algol_order_export/export-products-as-columns/
You must uncomment line 82!
- How can we add a Title “Total” to the $summary_row?
- We tried to apply a filter by product taxonomy to this export but it didn’t work. It seems to be filtering the orders that do not contain products with this taxonomy but within those orders it still export products without the taxonomy (even though we have unchecked the options “Export all products from the order”). How can we make this work with this code?
A M A Z I N G ! ! !
Thx!! 🙂Just one more thing.
About this…2) try add this code to “Misc Settings”
add_action( 'woe_xls_print_header', function ($objXls,$formatter) {
$objXls->getActiveSheet()->getDefaultRowDimension()->setRowHeight(-1);
}, 10, 2);How can I achieve this in CSV?
And also, how can I achieve this for the column width in XLS?
(Without using this code, in csv the width gets adjusted automatically to fit the content by default but not the height while in XLS the height gets adjusted automatically but not the width lol).