@aks03vova

Fatal error: Cannot declare interface RedBeanPHP\Logger, because the name is already in use in?

Именно такую ошибку выдаёт мне RebBeanPHP, в гугле ответа так и не нашёл. Код:
<?php
require 'db.php';
if(isset($_POST['send'])){
	   $wall = R::dispense('wall');
       $wall->owner_id = $_GET['id'];
       $wall->author_id = $_SESSION['logged']->id;
       $wall->text = $_POST['newpost'];
       R::store($wall);
}
?>
	<form name="newpost" action="/user/wall.php" method="post">
    <textarea name="newpost"></textarea>
    <br><button type="submit" name="send">Отправить</button>
    </form>

RebBeanPHP выдаёт такую ошибку:
Fatal error: Cannot declare interface RedBeanPHP\Logger, because the name is already in use in /storage/emulated/0/www/public/user/libs/rb.php on line 19
Вот что в rb.php (с 1 по 23 строку):
<?php

namespace RedBeanPHP {

/**
 * RedBean Logging interface.
 * Provides a uniform and convenient logging
 * interface throughout RedBeanPHP.
 *
 * @file    RedBean/Logging.php
 * @author  Gabor de Mooij and the RedBeanPHP Community
 * @license BSD/GPLv2
 *
 * @copyright
 * copyright (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community
 * This source file is subject to the BSD/GPLv2 License that is bundled
 * with this source code in the file license.txt.
 */
interface Logger
{
	/**
	 * A logger (for PDO or OCI driver) needs to implement the log method.
	 * The log method will receive logging data. Note that the number of parameters is 0, this means

В чем же все-таки ошибка, я так и не понял. Кто может помочь?
  • Вопрос задан
  • 1498 просмотров
Пригласить эксперта
Ответы на вопрос 1
@Dan_key
Скорее всего ты еще где-то вызывал db.php вот поэтому такая ошибка и вылезла
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы