Forum Replies Created
- AuthorPosts
- michaParticipant
…maybe this is important. I’m using Dokan with WCFM Ultimate.
michaParticipantYes, I’m using Groups & Staff as well. Now it works.
Maybe this should be improved by renaming the capability?Many Thanks
MichamichaParticipantThe warning disappeared as I made sure that the php script doesn’t send ANY content before calling session_start (so I put it at the absolute beginning).
michaParticipantHi,
I read again what is exactly stated in the error message. Add session_start();
Thus, I added the following on the beginning of the php script which is producing the error:/**
* Initialize session at start
*/
function init_session() {
if ( session_id() == ” ) {
session_start();
}
}
init_session();Now it works.
Now I only get a warning:
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at … on line 20michaParticipantI found the solution which was a wrong configuration. Under Dokan->Modules I had to disable “Vendor Subscription”. Now it works.
michaParticipantIf I uncheck the “Enable Adding Products” in wordpress (dokan) user settings the unlimited products we be show to the vendor but now he of course is not allowed to add a product anymore ;-). Please see also screenshot.
Attachments:
You must be logged in to view attached files.michaParticipantI’m using Dokan and yes I’m programming on a custom plugin. Actually, I’m extending an existing one to be able to show all orders of a customer in a vendor account after the costumer provided their customer id (via qr code on a customer card).
I’m also astonished about that behavior. Especially, because it works after deactivating the WC Frontend Manager Plugin.
I get the following fatal error (only with WCFM activated and logged in as a “Vendor” user):
[06-Sep-2018 08:33:54 UTC] PHP Fatal error: Uncaught Exception: Hybridauth requires the use of ‘session_start()’ at the start of your script, which appears to be disabled. in /…/wp-content/plugins/dokan-pro/includes/lib/Hybrid/Storage.php:21
Stack trace:
#0 /…/wp-content/plugins/dokan-pro/includes/lib/Hybrid/Auth.php(117): Hybrid_Storage->__construct()
#1 /…/wp-content/plugins/dokan-pro/includes/lib/Hybrid/Auth.php(55): Hybrid_Auth::initialize(Array)
#2 /…/wp-content/plugins/wc-frontend-manager-ultimate/core/class-wcfmu-vendor-verification.php(119): Hybrid_Auth->__construct(Array)
#3 /…/wp-content/plugins/wc-frontend-manager-ultimate/core/class-wcfmu-vendor-verification.php(24): WCFMu_Vendor_Verification->wcfm_vendor_auth_requests()
#4 /…/wp-content/plugins/wc-frontend-manager-ultimate/c in /…/wp-content/plugins/dokan-pro/includes/lib/Hybrid/Storage.php on line 21I was hoping you might have an advise for me.
michaParticipantHi,
Thanks for the fast response. I’m using the Dokan multi-vendor plugin.
- AuthorPosts