Ankündigung

Einklappen
Keine Ankündigung bisher.

phpMyAdmin Fehler

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • phpMyAdmin Fehler

    Hallo an alle, ich bekomme die ganze Zeit egal was ich tue den Fehler den hier drunter sieht

    MySQLi-Fehler.PNG

    hier drunter seht ihr einen Abschnitt aus meiner php.ini hat vielleicht jemand eine Idee, wie ich wieder auf meinen localhost zugreifen kann.

    Danke im Voraus.

    ; Directory in which the loadable extensions (modules) reside.
    ; http://php.net/extension-dir
    ;extension_dir = "./"
    ; On windows:
    ;extension_dir = "ext"

    ; Directory where the temporary files should be placed.
    ; Defaults to the system default (see sys_get_temp_dir)
    ;sys_temp_dir = "/tmp"

    ; Whether or not to enable the dl() function. The dl() function does NOT work
    ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
    ; disabled on them.
    ; http://php.net/enable-dl
    enable_dl = Off

    ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
    ; most web servers. Left undefined, PHP turns this on by default. You can
    ; turn it off here AT YOUR OWN RISK
    ; **You CAN safely turn this off for IIS, in fact, you MUST.**
    ; http://php.net/cgi.force-redirect
    ;cgi.force_redirect = 1

    ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
    ; every request. PHP's default behavior is to disable this feature.
    ;cgi.nph = 1

    ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
    ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
    ; will look for to know it is OK to continue execution. Setting this variable MAY
    ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
    ; http://php.net/cgi.redirect-status-env
    ;cgi.redirect_status_env =

    ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
    ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
    ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
    ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
    ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
    ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
    ; http://php.net/cgi.fix-pathinfo
    ;cgi.fix_pathinfo=1

    ; if cgi.discard_path is enabled, the PHP CGI binary can safely be placed outside
    ; of the web tree and people will not be able to circumvent .htaccess security.
    ;cgi.discard_path=1

    ; FastCGI under IIS supports the ability to impersonate
    ; security tokens of the calling client. This allows IIS to define the
    ; security context that the request runs under. mod_fastcgi under Apache
    ; does not currently support this feature (03/17/2002)
    ; Set to 1 if running under IIS. Default is zero.
    ; http://php.net/fastcgi.impersonate
    ;fastcgi.impersonate = 1

    ; Disable logging through FastCGI connection. PHP's default behavior is to enable
    ; this feature.
    ;fastcgi.logging = 0

    ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
    ; use when sending HTTP response code. If set to 0, PHP sends Status: header that
    ; is supported by Apache. When this option is set to 1, PHP will send
    ; RFC2616 compliant header.
    ; Default is zero.
    ; http://php.net/cgi.rfc2616-headers
    ;cgi.rfc2616_headers = 0

    ; cgi.check_shebang_line controls whether CGI PHP checks for line starting with #!
    ; (shebang) at the top of the running script. This line might be needed if the
    ; script support running both as stand-alone script and via PHP CGI<. PHP in CGI
    ; mode skips this line and ignores its content if this directive is turned on.
    ; http://php.net/cgi.check-shebang-line
    ;cgi.check_shebang_line=1

    ;;;;;;;;;;;;;;;;
    ; File Uploads ;
    ;;;;;;;;;;;;;;;;

    ; Whether to allow HTTP file uploads.
    ; http://php.net/file-uploads
    file_uploads = On

    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ; http://php.net/upload-tmp-dir
    ;upload_tmp_dir =

    ; Maximum allowed size for uploaded files.
    ; http://php.net/upload-max-filesize
    upload_max_filesize = 2M

    ; Maximum number of files that can be uploaded via a single request
    max_file_uploads = 20

    ;;;;;;;;;;;;;;;;;;
    ; Fopen wrappers ;
    ;;;;;;;;;;;;;;;;;;

    ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
    ; http://php.net/allow-url-fopen
    allow_url_fopen = On

    ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
    ; http://php.net/allow-url-include
    allow_url_include = Off

    ; Define the anonymous ftp password (your email address). PHP's default setting
    ; for this is empty.
    ; http://php.net/from
    ;from="john@doe.com"

    ; Define the User-Agent string. PHP's default setting for this is empty.
    ; http://php.net/user-agent
    ;user_agent="PHP"

    ; Default timeout for socket based streams (seconds)
    ; http://php.net/default-socket-timeout
    default_socket_timeout = 60

    ; If your scripts have to deal with files from Macintosh systems,
    ; or you are running on a Mac and need to deal with files from
    ; unix or win32 systems, setting this flag will cause PHP to
    ; automatically detect the EOL character in those files so that
    ; fgets() and file() will work regardless of the source of the file.
    ; http://php.net/auto-detect-line-endings
    ;auto_detect_line_endings = Off

    ;;;;;;;;;;;;;;;;;;;;;;
    ; Dynamic Extensions ;
    ;;;;;;;;;;;;;;;;;;;;;;

    ; If you wish to have an extension loaded automatically, use the following
    ; syntax:
    ;
    ; extension=modulename
    ;
    ; For example:
    ;
    ; extension=mysql
    ;
    ; When the extension library to load is not located in the default extension
    ; directory, You may specify an absolute path to the library file:
    ;
    ; extension=/path/to/extension/mysqli.so
    ;
    ; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and
    ; 'extension='php_<ext>.dll') is supported for legacy reasons and may be
    ; deprecated in a future PHP major version. So, when it is possible, please
    ; move to the new ('extension=<ext>) syntax.
    ;
    ; Notes for Windows environments :
    ;
    ; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+)
    ; extension folders as well as the separate PECL DLL download (PHP 5+).
    ; Be sure to appropriately set the extension_dir directive.
    ;
    ;extension=bz2
    ;extension=curl
    ;extension=ffi
    ;extension=ftp
    ;extension=fileinfo
    ;extension=gd
    ;extension=gd2
    ;extension=gettext
    ;extension=gmp
    ;extension=intl
    ;extension=imap
    ;extension=ldap
    ;extension=mbstring
    ;extension=exif ; Must be after mbstring as it depends on it
    ;extension=mysqli
    ;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
    ;extension=odbc
    ;extension=openssl
    ;extension=pdo_firebird
    ;extension=pdo_mysql
    ;extension=pdo_oci
    ;extension=pdo_odbc
    ;extension=pdo_pgsql
    ;extension=pdo_sqlite
    ;extension=pgsql
    ;extension=shmop

    ; The MIBS data available in the PHP distribution must be installed.
    ; See http://www.php.net/manual/en/snmp.installation.php
    ;extension=snmp

    ;extension=soap
    ;extension=sockets
    ;extension=sodium
    ;extension=sqlite3
    ;extension=tidy
    ;extension=xsl

    ;zend_extension=opcache

  • #2
    Du hast eine Fehlermeldung und einen Link. Warum fragst du das Forum? Außerdem ist das hier kein Support-Forum für phpMyAdmin. Warum fragst du nicht den Hersteller, wenn du Probleme mit seiner Software hast?

    Und es ist keine PHP-Frage.

    MOD: Verschoben von PHP Einsteiger

    Kommentar


    • #3
      ich habe mir den Inhalt des Links bereits angeschaut, jedoch nichts hilfreiches gefunden, was mir bei diesem Problem helfen würde.
      Die Mysqli Erweiterung habe ich auch eigentlich hinzugefügt nur irgendwie will die Seite es nicht akzeptieren. Es kann sein das ich einen Fehler in der ini habe ich diesen aber nicht finde

      Kommentar


      • #4
        Wenns einen Fehler in der .ini gibt, dann findet man dazu eine Fehlermeldung im Webserver-Log. Und mit phpinfo() kannst du dir anschauen, welche Module geladen wurden.

        Kommentar


        • #5
          das hier sind alle geladenen Module:
          core mod_win32 mpm_winnt http_core mod_so mod_access_compat mod_actions mod_alias mod_allowmethods mod_asis mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dav_lock mod_dir mod_env mod_headers mod_include mod_info mod_isapi mod_log_config mod_cache_disk mod_mime mod_negotiation mod_proxy mod_proxy_ajp mod_rewrite mod_setenvif mod_socache_shmcb mod_ssl mod_status mod_version mod_php


          Ich weiß leider nicht was du mit Webserver-Log meinst

          Kommentar


          • #6
            Das sind keine PHP-Module, sondern die vom Webserver.

            Kommentar


            • #7
              ;extension=mysqli

              Wenn du die Erweiterung auskommentierst, wird sie zu 100% nicht geladen, entferne also das Semikolon. Steht aber alles in der pohp.ini erklärt, auch mal bitte lesen, haben wir alle mal gehabt dieses Problem.

              Unter Windows gilt für die PHP-Versionen 5.3 und neuer, dass die mysqli-Erweiterung standardmäßig aktiviert ist und den MySQL Native Driver verwendet. Das bedeutet, dass Sie sich nicht um die Konfiguration des Zugriffs auf die libmysql.dll kümmern müssen.
              Quelle: https://www.php.net/manual/de/mysqli.installation.php

              Hast du iregendwo rumgefummelt wo du nichts ändern solltest?
              Ist das Linux oder Windows?

              Kommentar


              • #8
                Zitat von protestix Beitrag anzeigen
                ;extension=mysqli

                Wenn du die Erweiterung aus kommentierst, wird sie zu 100% nicht geladen, entferne also das Semikolon. Steht aber alles in der pohp.ini erklärt, auch mal bitte lesen, haben wir alle mal gehabt dieses Problem.


                Quelle: https://www.php.net/manual/de/mysqli.installation.php

                Hast du irgendwo rumgefummelt wo du nichts ändern solltest?
                Ist das Linux oder Windows?
                Die Erweiterung ist nun nicht mehr aus kommentiert, es funktioniert allerdings trotzdem nicht. Gibt es vielleicht eine Möglichkeit nachzuschauen auf welche php.ini zugegriffen wird. Wenn ich nämlich den Pfad (C:\xampp\php\php.ini) aus phpinfo() kopiere der für die ini zuständig ist komme ich immer bei der Datei raus die der auch öffnen soll nur irgendwie stelle ich keine Veränderungen fest. Das hier ist übrigens die Windows Version: Windows NT 10.0; Win64; x64. Des weiteren habe ich eigentlich nur bei den Extensions .dll "rumgefummelt", dort habe ich allerdings alles wieder auf den Ursprung zurückgebracht.

                Kommentar


                • #9
                  Wie gesagt, wenn eine Extension nicht geladen werden kann, findest du eine Meldung dazu im Error-Log. Hast du da jetzt schon nachgeschaut?

                  Kommentar


                  • #10
                    Kannst du mir vielleicht sagen wie ich mir den Error-Log anschauen kann?

                    Kommentar


                    • #11
                      ich bin mir nicht sicher, ob hellbringer das hier meint
                      Enabling error logging


                      To enable PHP error logging, you need to set two directives in the php.ini file:
                      • log_errors
                      • error_log

                      First, use a text editor to set the log_errors directive as shown:
                      log_errors = On
                      Next, set the error_log directive to log PHP errors to a specific file. Replace path with the path to the log file, and filename with the log filename:
                      error_log = /path/filename
                      The changes take effect as soon as you save the php.ini file.
                      besser dargestellt ist es hier https://www.a2hosting.com/kb/develop.../php-error-log

                      Kommentar


                      • #12
                        Zitat von marlin36 Beitrag anzeigen
                        ich bin mir nicht sicher, ob hellbringer das hier meint [h=4]

                        besser dargestellt ist es hier https://www.a2hosting.com/kb/develop.../php-error-log
                        ne das wird er nicht meinen ich glaube ich habe es gefunden.

                        hellbringer meinst du das hier

                        [Thu Jul 01 10:09:23.260253 2021] [ssl:warn] [pid 2604:tid 524] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
                        [Thu Jul 01 10:09:23.291506 2021] [core:warn] [pid 2604:tid 524] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
                        [Thu Jul 01 10:09:23.291506 2021] [ssl:warn] [pid 2604:tid 524] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
                        PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: C:\\php\\ext\\mysqli (Das angegebene Modul wurde nicht gefunden), C:\\php\\ext\\php_mysqli.dll (Das angegebene Modul wurde nicht gefunden)) in Unknown on line 0
                        [Thu Jul 01 10:09:23.307139 2021] [mpm_winnt:notice] [pid 2604:tid 524] AH00455: Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/8.0.0 configured -- resuming normal operations
                        [Thu Jul 01 10:09:23.307139 2021] [mpm_winnt:notice] [pid 2604:tid 524] AH00456: Apache Lounge VS16 Server built: Oct 2 2020 11:45:39
                        [Thu Jul 01 10:09:23.307139 2021] [core:notice] [pid 2604:tid 524] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
                        [Thu Jul 01 10:09:23.307139 2021] [mpm_winnt:notice] [pid 2604:tid 524] AH00418: Parent: Created child process 1740
                        [Thu Jul 01 10:09:23.619643 2021] [ssl:warn] [pid 1740:tid 516] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
                        [Thu Jul 01 10:09:23.650885 2021] [ssl:warn] [pid 1740:tid 516] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
                        PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: C:\\php\\ext\\mysqli (Das angegebene Modul wurde nicht gefunden), C:\\php\\ext\\php_mysqli.dll (Das angegebene Modul wurde nicht gefunden)) in Unknown on line 0
                        [Thu Jul 01 10:09:23.666516 2021] [mpm_winnt:notice] [pid 1740:tid 516] AH00354: Child: Starting 150 worker threads.

                        Kommentar


                        • #13
                          ich hab die Datenbank nun wieder mit der Website verbinden können erhalte jetzt aber beim login diese Fehlermeldung

                          [Thu Jul 01 10:34:12.644034 2021] [php:warn] [pid 2400:tid 1808] [client 10.1.2.72:61178] PHP Warning: get_browser(): browscap ini directive not set in C:\\xampp\\htdocs\\Verbrauchsmaterial\\com_statist ics.php on line 30, referer: http://10.1.0.150/Verbrauchsmaterial...index.php?id=0
                          [Thu Jul 01 10:34:12.644034 2021] [php:warn] [pid 2400:tid 1808] [client 10.1.2.72:61178] PHP Warning: Trying to access array offset on value of type bool in C:\\xampp\\htdocs\\Verbrauchsmaterial\\com_statist ics.php on line 31, referer: http://10.1.0.150/Verbrauchsmaterial...index.php?id=0
                          sonst komm ich überall rein (Login und alle anderen Funktionen der Website gehen ohne Probleme).

                          Ich wollte deshalb fragen, wie ich diesen Fehler am besten beheben kann?

                          hier der code zum Error-Log:

                          PHP-Code:
                          <?php
                          /*
                           * Modul, um Statistiken über Besucher zu führen
                           * Es wird ausgewertet, welche IP-Adresse auf die Seite gekommen ist,
                           * und von welchem Browser der Besuch stammte
                           * Es werden dabei keine benutzerbezogenen Daten gespeichert. Die IP wird
                           * zu Auswertungszwecken verschlüsselt gespeichert. 
                           * 
                           * 
                           * Die Komponente besteht aus zwei Modulen
                           *  -> 1.dem Loggen
                           *  -> 2.der Auswertung
                           * 
                           * Das Loggenmodul wird bei erfolgreichem Login ausgeführt
                           * Die Auswertung geschieht über die Admin-ID (frei)
                           * 
                           * Die Statistik wird als Klasse ausgeführt sein.
                           */
                          class statistic {
                              private 
                          $remoteip,
                                      
                          $browser,
                                      
                          $useragent;

                                  function 
                          __construct()  {

                                      
                          //Speichere Host-IP und Browsername
                                      
                          $this->remoteip $_SERVER['REMOTE_ADDR'];
                                      
                          $browser get_browser($_SERVER['HTTP_USER_AGENT'], true);
                                      
                          $this->browser $browser['browser'];
                                      
                          $this->useragent $_SERVER['HTTP_USER_AGENT'];
                                  }

                                  function 
                          log($inlink) {
                                      
                          $sql "INSERT INTO statistik (id, ip, useragent, zeitpunkt) VALUES (NULL, '$this->remoteip', '$this->useragent', CURRENT_TIMESTAMP)";
                                      
                          mysqli_query($inlink$sql) or die(mysqli_error());
                                  }

                                  function 
                          getIP() {
                                      return 
                          $this->remoteip;
                                  }

                                  function 
                          getUA() {
                                      return 
                          $this->useragent;
                                  }

                                  function 
                          getBrowser() {
                                      return 
                          $this->browser;
                                  }
                          }
                          class 
                          logger {
                              private 
                          $username;

                              function 
                          __construct($username) {
                                  
                          $this->username $username;
                              }
                              function 
                          write_log($inlink,$aktion) {
                                  
                          $sql "INSERT INTO logger (user, logtext) VALUES ('" .$this->username "', '$aktion')";
                                   
                          mysqli_query($inlink,$sql) or die(mysqli_error());
                              }

                          }
                          ?>

                          Kommentar


                          • #14
                            Zitat von GGW Beitrag anzeigen
                            PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: C:\\php\\ext\\mysqli (Das angegebene Modul wurde nicht gefunden), C:\\php\\ext\\php_mysqli.dll (Das angegebene Modul wurde nicht gefunden)) in Unknown on line 0
                            Na bitte, jetzt hast du deine Fehlerursache.

                            Zitat von GGW Beitrag anzeigen
                            [Thu Jul 01 10:34:12.644034 2021] [php:warn] [pid 2400:tid 1808] [client 10.1.2.72:61178] PHP Warning: get_browser(): browscap ini directive not set in C:\\xampp\\htdocs\\Verbrauchsmaterial\\com_statist ics.php on line 30, referer: http://10.1.0.150/Verbrauchsmaterial...index.php?id=0
                            Schau mal ins PHP-Handbuch:
                            In order for this to work, your browscap configuration setting in php.ini must point to the correct location of the browscap.ini file on your system.

                            browscap.ini is not bundled with PHP, but you may find an up-to-date » php_browscap.ini file here.

                            While browscap.ini contains information on many browsers, it relies on user updates to keep the database current. The format of the file is fairly self-explanatory.
                            https://www.php.net/manual/en/function.get-browser.php

                            Kommentar


                            • #15
                              Zitat von hellbringer Beitrag anzeigen

                              Na bitte, jetzt hast du deine Fehlerursache.



                              Schau mal ins PHP-Handbuch:

                              https://www.php.net/manual/en/function.get-browser.php
                              hat geklappt danke für deine Hilfe

                              Kommentar

                              Lädt...
                              X