J 4.3.3 mysqli object is not fully initialized

Réduire
X
 
  • Filtrer
  • Heure
  • Afficher
Tout effacer
nouveaux messages

  • J 4.3.3 mysqli object is not fully initialized

    sur un site en J 4.3.3 en localost sur MAMP j'ai l'erreur mysqli object is not fully initialized


    in /Applications/MAMP/htdocs/mysite/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php (line 137)
    in /Applications/MAMP/htdocs/mysite/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php -> prepare (line 137)
    in /Applications/MAMP/htdocs/mysite/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php -> __construct (line 1089)
    in /Applications/MAMP/htdocs/mysite/libraries/vendor/joomla/database/src/DatabaseDriver.php -> prepareStatement (line 1900)
    DatabaseDriver->setQuery(object(MysqliQuery))
    in /Applications/MAMP/htdocs/mysite/libraries/src/Menu/SiteMenu.php (line 166)
    ) ->bind(':currentDate2', $currentDate) ->order($this->db->quoteName('m.lft')); $items = []; $iterator = $this->db->setQuery($query)->getIterator(); foreach ($iterator as $item) { $items[$item->id] = new MenuItem((array) $item); }
    SiteMenu->Joomla\CMS\Menu\{closure}()
    in /Applications/MAMP/htdocs/mysite/libraries/src/Cache/Controller/CallbackController.php (line 51)
    CallbackController->get(object(Closure), array(), 'd17e8e13b99b4d9bf23a7d0b83a466c3', false)
    in /Applications/MAMP/htdocs/mysite/libraries/src/Menu/SiteMenu.php (line 179)
    SiteMenu->load()
    in /Applications/MAMP/htdocs/mysite/libraries/src/Menu/AbstractMenu.php (line 333)
    AbstractMenu->getMenu()
    in /Applications/MAMP/htdocs/mysite/libraries/src/Menu/AbstractMenu.php (line 164)
    AbstractMenu->getItem(null)
    in /Applications/MAMP/htdocs/mysite/libraries/src/Application/SiteApplication.php (line 422)
    SiteApplication->getTemplate(true)
    in /Applications/MAMP/htdocs/mysite/libraries/src/Error/Renderer/HtmlRenderer.php (line 50)
    HtmlRenderer->render(object(mysqli_sql_exception))
    in /Applications/MAMP/htdocs/mysite/libraries/src/Exception/ExceptionHandler.php (line 121)
    ExceptionHandler::render(object(mysqli_sql_excepti on))
    in /Applications/MAMP/htdocs/mysite/libraries/src/Exception/ExceptionHandler.php (line 72)
    ExceptionHandler::handleException(object(mysqli_sq l_exception))
    in /Applications/MAMP/htdocs/mysite/libraries/src/Application/CMSApplication.php (line 322)
    CMSApplication->execute()
    in /Applications/MAMP/htdocs/mysite/includes/app.php (line 61)
    require_once('/Applications/MAMP/htdocs/mysite/includes/app.php')
    in /Applications/MAMP/htdocs/mysite/index.php (line 32)


    merci pour l'aide

  • #2
    j'ai trouve l erreur
    dans configuration.php. il faut que la variable $host soit correcte , dans mon cas c'est localhost

    Commentaire


    • #3
      Juste au cas où... Ton premier message parle de locahost... Il y a une typo puisque c'est localhost.

      Donc locahost est un serveur inexistant.
      Christophe (cavo789)
      Mon blog, on y parle Docker, PHP, WSL, Markdown et plein d'autres choses : https://www.avonture.be
      Logiciel gratuit de scan antivirus : https://github.com/cavo789/aesecure_quickscan (plus de 45.000 virus détectés, 700.000 fichiers sur liste blanche)​

      Commentaire

      Annonce

      Réduire
      Aucune annonce pour le moment.

      Partenaire de l'association

      Réduire

      Hébergeur Web PlanetHoster
      Travaille ...
      X