This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

cannot access session in form.php
#1

Hello people, hope you all doing good out there, i am using commentics 3.3 in my project, would like to appreciate the team, its a wonderful plugin to use. i am trying to save the comments with name and email of my logged in user, which is stored in my session as an object of user class, when i try to access the user session details in page.php controller it allows me to do and works fine, but in form.php it throws the error that user object is incomplete php class. i have attached the screenshot of exeption and my code.
any help and suggestions are welcome.
keep coding stay blessed.
cheers !!!
Reply
#2

Hi there,

I can't see your attachment but anyway I think this happens when you try to read a session's object but the class which it's an instance of isn't declared (PHP can't find it). So you would need to either include/require the class that it came from before trying to read it, or store it in the session not as an object but just as individual strings.

https://stackoverflow.com/a/32424149
https://www.quora.com/What-is-an-incompl...ass-in-PHP

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
16-Feb-2018, 09:15 AM
Last Post by Wendon
20-Nov-2017, 03:36 PM
Last Post by Steven
02-Jun-2016, 08:55 PM
Last Post by Steven
10-Oct-2013, 09:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)