Thread Starter
orboan
(@orboan)
Well, once at least 1 code is created that warning dissapears. Therefore it can be solve with just a conditional checking if at least 1 code is created.
If you know what is the boolean to check in this conditional (how to check the existence of at least 1 code) please tell me.
thx.
Hello, i’ll check this asap, thank you !
ps : so you activated the plugin and delete the demo code ?
Thread Starter
orboan
(@orboan)
Hello Julio,
I activated the plugin and I didn’t notice any demo code.
When I first saw the warning was when I was in the main dashboard section (just after activating the plugin from the Multisites network dashborad -it was network activated- and next navigating to the dashboard of a child site), and from there I directly went to Add new code, added a new code and voilà the warning dissapear. Cheking the list of codes, then, I only see the code I created.
Thread Starter
orboan
(@orboan)
Update:
I’ve navigated now to the dashboard of another child site and the warning is shown. I navigated to the Invitation Code section and there is none, and a message which says “No codes yet, add one!”. If there should be a demo code, it seems that the Multisites Network activation of the plugin somehow unable the creation of that demo code and thus triggers that warning.
Thread Starter
orboan
(@orboan)
Update+:
In the first time I created a code manually without problem and the warning dissapeared. In this second time (in the second child site) I’ve tried to create codes automatically (Generate Codes section) and the result are 2 more warnings:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/orboanx/public_html/wp-content/plugins/baw-invitation-codes/inc/back-end.php on line 152
Warning: Cannot modify header information – headers already sent by (output started at /home/orboanx/public_html/wp-content/plugins/baw-invitation-codes/inc/back-end.php:152) in /home/orboanx/public_html/wp-includes/pluggable.php on line 881
Hope this info helps you.
Thread Starter
orboan
(@orboan)
more on that last info: after the 2 mentioned warnings, the codes are generated and the initial warning dissapears.
Ok, i did not test my plugin on MS install, this is not design for this at first glance.
Thanks for all this informations!
See you soon