Catchable fatal error: Argument 1 passed to RedBeanPHP

18 views
Skip to first unread message

hassan...@gmail.com

unread,
Oct 21, 2016, 3:07:02 PM10/21/16
to redbeanphp

hi, 

i created a signup page and it worked yesterday !! 

but today when i want signup , i got a error :

Catchable fatal error: Argument 1 passed to RedBeanPHP\Util\DispenseHelper::dispense() must be an instance of RedBeanPHP\OODB, null given, called in C:\websites\rb.php on line 10665 and defined in C:\websites\rb.php on line 12567


could you please help me how to solve this?

Matthew Frederico

unread,
Oct 21, 2016, 6:22:58 PM10/21/16
to redbe...@googlegroups.com
That would require your sign up source code.  I'd install Xdebug and step through your code.

--
You received this message because you are subscribed to the Google Groups "redbeanphp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redbeanorm+unsubscribe@googlegroups.com.
To post to this group, send email to redbe...@googlegroups.com.
Visit this group at https://groups.google.com/group/redbeanorm.
For more options, visit https://groups.google.com/d/optout.



--
-`;'- Matthew Frederico

gabor

unread,
Oct 21, 2016, 6:25:01 PM10/21/16
to redbeanphp


Very hard to tell with so little info..

I would use a var_dump() to inspect the contents of the variable you pass to dispense()

cheers
Gabor
Reply all
Reply to author
Forward
0 new messages