M
M
Malinary2020-05-06 14:14:11
PHP
Malinary, 2020-05-06 14:14:11

RedBean throws an error after submitting the form. What could it be?

After filling out the form and clicking the submit button, it gives the following error. What could it be?

Fatal error
: Uncaught RedBeanPHP\RedException: OODB Store requires a bean, got: NULL in W:\domains\Dino\libs\rb.php:8070 Stack trace: #0 W:\domains\Dino\libs\rb.php( 8309): RedBeanPHP\OODB->unboxIfNeeded(NULL) #1 W:\domains\Dino\libs\rb.php(10627): RedBeanPHP\OODB->store(NULL) #2 W:\domains\Dino\signup. php(73): RedBeanPHP\Facade::store(NULL) #3 {main} thrown in
W:\domains\Dino\libs\rb.php
on line
8070

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PQR, 2020-05-06
@PQR

Judging by the error message, in the W:\domains\Dino\signup.php file, on line 73, a method call occurs ->store($здесь_какая-то_переменная)- so this variable is null, and it is expected that it should be a bean.
Look at the code, maybe there is a typo in the variable name or it is not filled in by mistake.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question