• Resolved abacuswhiskers

    (@abacuswhiskers)


    On my testing site I have an error on the vendor dashboard. It is a completely clean install with just Dokan Lite and Woocommerce installed. I first spotted it on my live site and wanted to check it wasn’t something I’d done. The error is below. I can fix the error by replacing the part of functions.php from the previous version, but I don’t know if I am just papering over the cracks or not. The error is:
    Fatal error: Uncaught Exception: DatePeriod::__construct(): The recurrence count '0' is invalid. Needs to be > 0 in /home/customer/www/threecrazychickens.com/public_html/wp-content/plugins/dokan-lite/includes/functions.php:1416 Stack trace: #0 /home/customer/www/threecrazychickens.com/public_html/wp-content/plugins/dokan-lite/includes/functions.php(1416): DatePeriod->__construct(Object(DateTimeImmutable), Object(DateInterval), 0) #1 /home/customer/www/threecrazychickens.com/public_html/wp-content/plugins/dokan-lite/includes/reports.php(329): dokan_prepare_chart_data(Array, 'post_date', 'total_orders', 0, Object(DateTimeImmutable), 'day') #2 /home/customer/www/threecrazychickens.com/public_html/wp-content/plugins/dokan-lite/includes/reports.php(264): dokan_sales_overview_chart_data('2022-10-01', '2022-10-01', 'day') #3 /home/customer/www/threecrazychickens.com/public_html/wp-content/plugins/dokan-lite/templates/dashboard/sales-chart-widget.php(19): dokan_dashboard_sales_overview() #4 /home/customer/www/threecrazychicken in /home/customer/www/threecrazychickens.com/public_html/wp-content/plugins/dokan-lite/includes/functions.php on line 1416

    Like I say, it’s like this on this test site and on my other ‘live’ site.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error on Vendor Dashboard’ is closed to new replies.