Hi Ajay,
How are you seeing this? On the command line or in running wp-mvc or in running a plugin you built from wp-mvc? Please give us enough detail so that we can try to reproduce it, and we’ll try to help.
Thanks!
Best,
Robert
Hi,
with you example plugin venue , event etc.
when go to wp-admin/admin.php?page=mvc_venues
then Error:
Notice: A session had already been started – ignoring session_start() in /www/htdocs/site/wp-content/plugins/wp-mvc/core/loaders/mvc_admin_loader.php on line 36
— how can we lean this framework for emebded with plugin
— how easy to create admin side, scaffold with not custom post type ?
Regards,
Hi Ajay,
Unfortunately, I cannot reproduce this on a default installation of WordPress with the wp-mvc plugin running. So, the likely cause here is another third-party plugin that you are running that is interfering. You can try disabling plugins one-by-one until you find the cause.
In answer to your other questions, we are working on how best to embed wp-mvc in a self-contained plugin, but for now it must be run alongside any other plugins built on wp-mvc to get them to work.
It is very easy to create admins for new content, even without assigning them to a custom post type. See the documentation at http://wpmvc.org/ for more details.
I hope this helps point you in the right direction!
Best,
Robert
Hello @robert,
I have the same issue as @ajayphp described.
The problem occurs if there is another plugin which initialize a session before yours plugin (wp-mvc).
So the issues is at 36 row at plugins\wp-mvc\core\loaders\mvc_admin_loader.php.
You should initialize a session only if there isn’t any other.
So to fix the problem you should fix 36 row in a following way :
if(session_id() == '')
session_start();
More info at Stackoverflow.
Thanks for the explanation, Jordan. This has been resolved in 1.3.3, which has just been released to the WordPress Repository.
Thank you too for the fast release! 🙂