fhwebdesign
Forum Replies Created
-
Hallo,
du hast 2 M?glichkeiten:
entweder das Plugin komplett l?schen und wieder neu installieren (aber dann alles neu konfigurieren!)
oder
Die Dateien durch die in dieser Zip heruntergeladenen in /wp-content/plugins/dsgvo-tools-cookie-hinweis-datenschutz/ ersetzen.Falls etwas nicht funktioniert gerne einen weiten Supportthread er?ffnen!
Macht nichts – alles gut. Jeder kann mal was übersehen ??
Wunderbar – Falls der Fehler bekannt ist würde ich mich über eine Nachricht freuen, damit ich eventuell solche Inkonsistenzen aus der Welt schaffen kann.
@0x616469 Auf meinen Testsystemen funktioniert alles einwandfrei.
K?nnte ich mal einen Screenshot oder besser noch ein kurzes Video haben, damit ich mir ein Bild davon machen kann?
Auch w?re eine kleine Schritt-für-Schritt-Anleitung zur Reproduktion von Vorteil.Bei dem Patch f?llt mir auf, dass nicht der ganze Name der Sprache angezeigt wird, da nur die Slugs geladen werden.
Au?erdem werden ja dort dann jeweils nur die Seiten der jeweiligen Sprache angezeigt. Jedoch sollen Nutzer auch die M?glichkeit haben, anderssprachige Seiten auf die Hauptsprache weiterleiten zu lassen.
@0x616469 kein Problem, für sowas ver?ffentliche ich doch Plugins. Würde ja nichts bringen, wenn man keine neuen Features herausbringt.
Das Update auf 1.5 steht jetzt bereit. Bei weiteren Fehlern bitte einen weiteren Support-Thread er?ffnen.
Wenn es gut l?uft noch heute.
Aktuell wird lediglich eine Datenschutzerkl?rung unterstützt. Allerdings steht das bereits auf der To-Do-Liste für dieses Plugin. Jedoch bin ich gerade noch an einer anderen ?nderung dran. Sobald diese vorgenommen ist, werde ich die M?glichkeit für mehrere Sprachen hinzufügen.
Forum: Plugins
In reply to: [GDPR tools: Cookie notice + privacy] Fehler nach UpdateSollte mit dem neuen Update behoben sein.
Forum: Plugins
In reply to: [GDPR tools: Cookie notice + privacy] Fehler nach UpdatePerfekt, danke! Ich sag dir Bescheid, wenn ich was rausgefunden habe und gebe dann auch gleich ein Update raus. Danke für die Bewertung!
Forum: Plugins
In reply to: [GDPR tools: Cookie notice + privacy] Fehler nach UpdateAlles klar, danke! Ich schau am Montag als drüber. Sagst du mir nur die PHP-Version, auf der der Fehler festgestellt wurde?
Forum: Plugins
In reply to: [GDPR tools: Cookie notice + privacy] Fehler nach UpdateDanke für die Info! K?nntest du mir ein oder zwei Themes nennen, damit ich das ganze reproduzieren kann?
Forum: Fixing WordPress
In reply to: block cookies from beeing setYeah, but this isn’t the only function the plugin have, there are multiple others. So how to block all cookies?
Forum: Developing with WordPress
In reply to: Plugin development admin-ajax.php error 400?Okay, thank you for that good explanation! The mistake was that I forgot to include the ladeMarke.php into the plugins main file. Thanks for your help!
Forum: Developing with WordPress
In reply to: Plugin development admin-ajax.php error 400?I’m assuming the wp_enqueue_scripts add action still exists for fhw_register_script() somewhere.
The script above is the actual, whole plugin main file.
And apparently the action value from your jQuery is now fhw_ladeMarke instead of fhw_getTyp like in the snippet posted in your first reply to Jacob?
I just renamed that, but in all files.
Let’s be sure the Ajax callback is getting called. It should be if the above is true. Place something like error_log(‘Notice: fhw_do_ajax_request() was called’); as the first line in fhw_do_ajax_request(). Do a test, then verify the message appears in the error log. Whether it exists or not will tell us what direction to look for problems.
Ehm.. should I have a fhw_do_ajax_request function? What should it contain? As said, the script in the reply above is my whole file (without comments). Oh, there is a addaction more to enqueue fhw_register_script() too.
Forum: Developing with WordPress
In reply to: Plugin development admin-ajax.php error 400?Yes, that was my intention. But I missed another important detail. Please change that one line to this:
add_action( ‘wp_ajax_fhw_getTyp’, ‘fhw_do_ajax_request’ );
The action tag has to correspond to the action data passed from jQuery, not your callback name.You probably know this, but it’s worth noting that one must be logged in for that action to work. For non-logged in users, the action tag would be ‘wp_ajax_no_priv_fhw_getTyp’, added separately.
Ok, I did it like this:
add_action( 'wp_ajax_fhw_ladeMarke', 'fhw_do_ajax_request' ); add_action( 'wp_ajax_no_priv_fhw_ladeMarke', 'fhw_do_ajax_request' ); function fhw_register_script() { wp_register_script( 'fhw_formular', plugins_url( '/js/formular.js', __FILE__ ), array( 'jquery' ) ); wp_enqueue_script( 'fhw_formular' ); wp_localize_script( 'fhw_formular', 'ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'we_value' => 1234 ) ); wp_enqueue_script( 'fhw_formular' ); }
But that is also not working, still the same 400 Error.