Forum
Fatal error when using the mebers app
Hi
I have used the members app on many sites, i am creating a new site and can not get the members page to load.
I have added it to the apps.php file and it appears to have created all the sql tables.
I have tried to add debug but as i am getting fatal error is it not outputting anything.
I created a base perch install and are still getting the same issue, I have no issue with any other app on the site - forms and gallery
error message.
Fatal error: Call to undefined function perch_member_logged_in() in D:\xampp\htdocs\base\members\index.php on line 28
if i remove the offending code and just try and display the login form i get.
Fatal error: Call to undefined function perch_members_login_form() in D:\xampp\htdocs\base\members\index.php on line 34
Regards,
Brett
Just an update yo say i have installed all the latest versions of perch and apps
Can you show me the contents of your
apps.php
file?<?php $apps_list = array( 'content', 'perch_gallery', 'perch_forms', 'perch_members', );
Can you verify that the
perch/addons/apps/perch_members/runtime.php
file has uploaded correctly and isn't empty?Hi Drew , Yes it is there and not empty.
i loaded perch 2.53 and a new database
perch install fine again the sql tables are there but when i go to /members/index.php or /members/register.php the page return
problem loading page The connection to the server was reset while the page was loading.
the /example.php page load fine.
Regards,
Brett
What's in your PHP error log?
Hi
I cleaned it out when i added perch 2.53 to see any new errors, it is clean
I have been able to get the page to load if i take out perch_members_login_form();
I can also get it to run if i replace perch_members_login_form(); with perch_members_form('login_form.html');
Regards,
Brett
Hi Drew
I have found the issue
if i take out the <perch:member logged-in="true">
<perch:else:member />
part of the login_form.html it loads fine
Try increasing the stack size: https://stackoverflow.com/questions/5058845/how-do-i-increase-the-stack-size-for-apache-running-under-windows-7
Hi Drew
That worked, Thanks for the help, you may want to include this in the doco.
Regards,
Brett
Just spent two hours on this issue. A mention in the docs would've been helpful. Sorted now.