JQuery probleme
-
Hallo zusammen
Seit kurzem habe ich folgendes problem.
/wp-content/themes/amora/js/custom.js: jQuery.fn.load() is deprecatedSo habe ich zum testen ein anderes Theme genommen und bei diesem kommt die gleiche Meldung.
Was kann ich machen?
Das Hauptproblem ist, dass meine Formulare nicht mehr funktionieren.Danke für Eure Hilfe und Gruss
MikeDie Seite, für die ich Hilfe brauche: [Anmelden, um den Link zu sehen]
-
Dort gehst du in die Tabelle ??_options (?? mit deinem Tabellen-Präfix ersetzen) und suchst nach Feldern mit dem Namen siteurl und home. Die URL musst du dann mit der URL ersetzen, unter der deine WordPress-Installation erreichbar ist.
Gesucht, gefunden, ersetzt.
Funktioniert nicht
Welche WordPress-Installation ist jetzt gemeint? Die echte oder die Test?Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.
Are you sure you have the correct username and password?
Are you sure you have typed the correct hostname?
Are you sure the database server is running?-
Diese Antwort wurde vor 5 Jahren, 2 Monaten von
mikebangle geändert.
Welche WordPress-Installation ist jetzt gemeint? Die echte oder die Test?
Wenn du die Datenbank vom einer Website
https://example.comauf deinen lokalen Webserver überträgst und die Website dann mithttps://localhostaufrufen möchtest, überall aber noch die alte URLhttps://example.comsteht, versucht deine geklonten Website immer auf den Webserverexample.comzuzugreifen. Deshalb musst du, wenn du nur die Datenbank (remote) exportierst und (lokal) importierst die URLs wieder anpassen.Error establishing a database connection
Da kann deine WordPress-Installation nicht mit der Datenbank kommunizieren. Stimmen in der
wp-config.phpdeiner lokalen Website die Zugangsdaten zur lokalen Datenbank? Auch das Datenbanktabellen-Präfix (steht etwas weiter unten unter den SALT-Keys)?Öhm ok.
halbwegs verrstanden.Du schreibst, ich muss die „siteurl“ und „Home“ ändern.
Habe ich versucht, aber was müsste da genau stehen?
http://mike.test oder mike.test oder localhost F:\Laragon uswHallo,
bei Laragon hast du eigentlich sogen. pretty URL’s, d. h. wenn du über „Menü“ mit dem Elefanten auf „www“ klickst, dann siehst du alle WordPress-Instanzen, die du angelegt hast.
Angenommen, du hast eine WordPress-Instanz mit dem Namen „leer“, dann solltest du das Dashboard mithttp://leer.test/wp-login.phpaufrufen können und die Seite (frontend) mitleer.test(das ist die „pretty URL“).
Im Dashboard steht dann unter Einstellungen > Allgemein > WordPress-Adresse (URL):http://leer.testund das Gleiche unter Website-Adresse (URL).
Genau diese URL sollte dann auch in der Datenbank stehen, siehe hier:

Viele Grüße
Hans-Gerd-
Diese Antwort wurde vor 5 Jahren, 2 Monaten von
Hans-Gerd Gerhards geändert.
-
Diese Antwort wurde vor 5 Jahren, 2 Monaten von
Hans-Gerd Gerhards geändert.
-
Diese Antwort wurde vor 5 Jahren, 2 Monaten von
Hans-Gerd Gerhards geändert.
Yep. Also http://mike.test wäre dann das was dort eingetragen werden müsste.
Wenn ich jetzt bei Laragon auf „Menu,www,mike“ gehe kommt dasError establishing a database connection
Dann stimmen für die Website, die dort angelegt ist, die Zugangsdaten zur Datenbank nicht. (Siehe Antwort oben.)
Das steht in meiner wp-config.php
<?php define('WP_CACHE', true); // WP-Optimize Cache /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://wordpress.org/support/article/editing-wp-config-php/ * * @package WordPress */ // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'mike' ); /** MySQL database username */ define( 'DB_USER', 'root' ); /** MySQL database password */ define( 'DB_PASSWORD', '' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost' ); /** Database Charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8' ); /** The Database Collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); if ( !defined('WP_CLI') ) { define( 'WP_SITEURL', $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] ); define( 'WP_HOME', $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] ); } /**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * * @since 2.6.0 */ define( 'AUTH_KEY', 'vnXqHYF0KzucxhbXJyEqCwSRYaYxJnDzt8phLMQmUAgxEOI2PQsBcEXbCZabFzNe' ); define( 'SECURE_AUTH_KEY', 'VJuhynCy5tKSYVMbuyUwSIDgHKbIeIvU0dZAJwzIzlQDkMx98tgVyPv9oScXDklC' ); define( 'LOGGED_IN_KEY', 'dprB7j9jjK0lhJSOIZ6CChyqLTc0rHLXOZkn6G4crYmil8XhFgJWMmpGJxeqKAsN' ); define( 'NONCE_KEY', '3EgRFx1UKbFT2es6bkYbaKDJlZwVQE29htBquLERie4n7ZeC9itQlsYVpHY4y1Ly' ); define( 'AUTH_SALT', 'RejnWEWj4CtfPJCtoBJfDkdSTZT7J9dH7lkVXEIVTcLCSqpsBOX9nKq0vneOu2ZZ' ); define( 'SECURE_AUTH_SALT', '3ewufO2viUpFdR7mAKqVbq2T7gFHyy4KGwY7vLUAs23riz4TjjtUaM8hHo7LGztS' ); define( 'LOGGED_IN_SALT', 'tRsaKaPnXtvSMJsfn0yyUwwLECFVZBeCyzgpdoFc3IuP4QIixCavfJjgSRW3mV4M' ); define( 'NONCE_SALT', '5D8bfKRjTiy4bHZfqAr3mZZU3EA3HFK7u4yiTInqDbx5UVKirb8tUtX1gvRgtSyO' ); /**#@-*/ /** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each * a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'wp_'; /** * For developers: WordPress debugging mode.-
Diese Antwort wurde vor 5 Jahren, 2 Monaten von
Bego Mario Garde geändert.
-
Diese Antwort wurde vor 5 Jahren, 2 Monaten von
Bego Mario Garde geändert. Grund: Codeformatierung geändert
Heißt die Datenbank
mike?Ob das mit Benutzername
rootund ohne Passwort passt, kann dir @hage besser beantworten.Mit welchen Zeichen fangen die Tabellen in der Datenbank denn an? Mit
wp_?Wo kommt das hier her?
if ( !defined('WP_CLI') ) { define( 'WP_SITEURL', $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] ); define( 'WP_HOME', $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] ); }Hallo,
die Zeilen bezogen auf WP_CLI sind ok.
Aber die letzten Zeilen fehlen. Ich kopiere mal den Teil, der unten stehen müsste:/** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each * a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'wp_'; /** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. * * For information on other constants that can be used for debugging, * visit the Codex. * * @link https://codex.wordpress.org/Debugging_in_WordPress */ define( 'WP_DEBUG', false ); /* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', dirname( __FILE__ ) . '/' ); } /** Sets up WordPress vars and included files. */ require_once( ABSPATH . 'wp-settings.php' );Schau auch mal in die
wp-config-sample.php, wenn die Datei da ist.
Standardmäßig sollte das Präfix bei einer WordPress-Instanz unter Laragonwp_sein (wenn man das nicht ändern will).
Viele Grüße
Hans-Gerddas steht in meiner wp-config.php
<?php define('WP_CACHE', true); // WP-Optimize Cache /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://wordpress.org/support/article/editing-wp-config-php/ * * @package WordPress */ // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'mike' ); /** MySQL database username */ define( 'DB_USER', 'root' ); /** MySQL database password */ define( 'DB_PASSWORD', '' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost' ); /** Database Charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8' ); /** The Database Collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); if ( !defined('WP_CLI') ) { define( 'WP_SITEURL', $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] ); define( 'WP_HOME', $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] ); } /**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * * @since 2.6.0 */ define( 'AUTH_KEY', 'vnXqHYF0KzucxhbXJyEqCwSRYaYxJnDzt8phLMQmUAgxEOI2PQsBcEXbCZabFzNe' ); define( 'SECURE_AUTH_KEY', 'VJuhynCy5tKSYVMbuyUwSIDgHKbIeIvU0dZAJwzIzlQDkMx98tgVyPv9oScXDklC' ); define( 'LOGGED_IN_KEY', 'dprB7j9jjK0lhJSOIZ6CChyqLTc0rHLXOZkn6G4crYmil8XhFgJWMmpGJxeqKAsN' ); define( 'NONCE_KEY', '3EgRFx1UKbFT2es6bkYbaKDJlZwVQE29htBquLERie4n7ZeC9itQlsYVpHY4y1Ly' ); define( 'AUTH_SALT', 'RejnWEWj4CtfPJCtoBJfDkdSTZT7J9dH7lkVXEIVTcLCSqpsBOX9nKq0vneOu2ZZ' ); define( 'SECURE_AUTH_SALT', '3ewufO2viUpFdR7mAKqVbq2T7gFHyy4KGwY7vLUAs23riz4TjjtUaM8hHo7LGztS' ); define( 'LOGGED_IN_SALT', 'tRsaKaPnXtvSMJsfn0yyUwwLECFVZBeCyzgpdoFc3IuP4QIixCavfJjgSRW3mV4M' ); define( 'NONCE_SALT', '5D8bfKRjTiy4bHZfqAr3mZZU3EA3HFK7u4yiTInqDbx5UVKirb8tUtX1gvRgtSyO' ); /**#@-*/ /** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each * a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'wp_'; /** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. * * For information on other constants that can be used for debugging, * visit the documentation. * * @link https://wordpress.org/support/article/debugging-in-wordpress/ */ define( 'WP_DEBUG', false ); /* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', __DIR__ . '/' ); } /** Sets up WordPress vars and included files. */ require_once ABSPATH . 'wp-settings.php';Ich komm nicht weiter 🙁
-
Diese Antwort wurde vor 5 Jahren, 2 Monaten von
Bego Mario Garde geändert.
-
Diese Antwort wurde vor 5 Jahren, 2 Monaten von
Bego Mario Garde geändert. Grund: Code formatiert
und in wp-config-sample
<?php /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://wordpress.org/support/article/editing-wp-config-php/ * * @package WordPress */ // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'database_name_here' ); /** MySQL database username */ define( 'DB_USER', 'username_here' ); /** MySQL database password */ define( 'DB_PASSWORD', 'password_here' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost' ); /** Database Charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8' ); /** The Database Collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); /**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * * @since 2.6.0 */ define( 'AUTH_KEY', 'put your unique phrase here' ); define( 'SECURE_AUTH_KEY', 'put your unique phrase here' ); define( 'LOGGED_IN_KEY', 'put your unique phrase here' ); define( 'NONCE_KEY', 'put your unique phrase here' ); define( 'AUTH_SALT', 'put your unique phrase here' ); define( 'SECURE_AUTH_SALT', 'put your unique phrase here' ); define( 'LOGGED_IN_SALT', 'put your unique phrase here' ); define( 'NONCE_SALT', 'put your unique phrase here' ); /**#@-*/ /** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each * a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'wp_'; /** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. * * For information on other constants that can be used for debugging, * visit the documentation. * * @link https://wordpress.org/support/article/debugging-in-wordpress/ */ define( 'WP_DEBUG', false ); /* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', __DIR__ . '/' ); } /** Sets up WordPress vars and included files. */ require_once ABSPATH . 'wp-settings.php';-
Diese Antwort wurde vor 5 Jahren, 2 Monaten von
Bego Mario Garde geändert.
-
Diese Antwort wurde vor 5 Jahren, 2 Monaten von
Bego Mario Garde geändert. Grund: Code formatiert
Hallo,
nur kurz: die Datenbank heißt sicher „Mike“?
Ich schaue mir die wp_config.php auf jeden Fall noch an und melde mich.
Viele Grüße
Hans-Gerd@hage „die Datenbank heißt sicher „Mike“?“
Hatte ich mich auch gefragt. 😀Hallo,
ich habe die von dir oben gepostete Datei wp-config.php mit einer wp-config.php von mir verglichen, konnte aber keine Probleme feststellen.
Ich habe dann sogar deine wp-config.php genutzt und nur den Datenbanknamen geändert. Hat funktioniert.
Ich kann mir an sich nur vorstellen, dass entweder der Datenbankname falsch ist oder bei Laragon irgendwas bei dir nicht korrekt funktioniert.
Versuche doch mal, ob es klappt, wenn du eine komplett neue (leere) WordPress-Instanz installierst: Laragon-Menü > Neue Website erstellen > WordPress.
Viele Grüße
Hans-GerdDas ist gut möglich.
Denn nach 2x Laragon iinstallieren fehlte mir ja jedesmal der Ordner F:\laragon/ect/apps.
Erst nach der 3ten installation war der da.
Also, heute letzter Versuch.
Ich installiere Laragon neu, mache eine neue Page mit Namen Test100 und schau was dann dabei rauskommtNochmals herzlichen Dank an Euch
Mike
-
Diese Antwort wurde vor 5 Jahren, 2 Monaten von
Das Thema „JQuery probleme“ ist für neue Antworten geschlossen.