• There is a critical error on our webpage, that makes it impossible to adjust the backend. What shall we do?

    Ein Fehler vom Typ?E_ERROR?wurde in der Zeile?144?der Datei?/kunden/564299_80335/webseiten/wp-content/plugins/duplicate-post-page-menu-custom-post-type/duplicate-post-page-menu-cpt.php?verursacht. Fehlermeldung:?Uncaught Error: Undefined constant "tru" in /kunden/564299_80335/webseiten/wp-content/plugins/duplicate-post-page-menu-custom-post-type/duplicate-post-page-menu-cpt.php:144 Stack trace: #0 /kunden/564299_80335/webseiten/wp-includes/class-wp-hook.php(324): Duplicate_PPMC_Init->duplicate_ppmc_admin_notice() #1 /kunden/564299_80335/webseiten/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #2 /kunden/564299_80335/webseiten/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /kunden/564299_80335/webseiten/wp-admin/admin-header.php(303): do_action() #4 /kunden/564299_80335/webseiten/wp-admin/index.php(137): require_once('...') #5 {main} thrown

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    If you want a quick fix for the issue and know a coding, you can do following changes:

    1. Open the Plugin Editor
      < In the WP Admin area: Navigate to Plugins > Plugin File Editor from the left-hand menu.
    2. Select the Target Plugin
      In the Plugin Editor, locate the dropdown menu at the top right labeled “Select plugin to edit.”
      Choose Duplicate Post Page Menu & Custom Post Type from the list and click the “Select” button.
    3. Locate the File to Edit
      In the list of files on the right-hand side, duplicate-post-page-menu-cpt.php
    4. Find the Specific Line
      Once the file opens in the editor, scroll down to line 144 or use your browser’s search function (usually Ctrl + F or Cmd + F) to locate the line:
      if ( tru !== $support && $diff_days >= 2 ) {
    5. Edit the Code
      Change tru to true so that the line reads:
      if ( true !== $support && $diff_days >= 2 ) {
      Reference Screenshot: https://i.imgur.com/ejEHvIr.png
    6. Save the Changes
      Scroll to the bottom of the editor and click the “Update File” button.
      Confirm the changes have been saved by checking for a success message.


    Please note: Editing plugin files directly can break your website if done incorrectly. Ensure you have a full site backup before making changes.

    Thanks!

    Hi @apkbayern
    leider k?nnt Ihr ohne FTP-Zugang nicht viel machen…

    Die Entwickler haben einen schwerwiegenden Fehler ausgerollt….
    Es gibt eine Funktion in dem Plugin, die in einer Admin-Backend-Notiz Werbung ausgibt für die PRO-Version des Plugins… ??

    “Thank you for choosing Duplicate Post Page Menu & Custom Post Type. … Buy me a coffee…”

    Und grad diese Funktion wird aufgerufen, sobald das Backend (egal welche Seite) ge?ffnet wird… Daher k?nnt Ihr auch keine neue Version installieren oder (falls überhaupt aktiviert) den Plugin-Datei-Editor benutzen oder so, weil das leider für jede Seite im Backend gilt… In dieser Funktion ist in Zeile 144 unfassbarerweise eine Unsauberkeit ausgerollt worden, die einen Fehler verursacht und somit die weitere Verarbeitung des Backend-Aufbaus unterbricht. Dadurch fehlen auch Standard-DOM-Elemente im Backend und es kann in der Dev-Konsole auch der JavaScript-Fehler “react-dom.min.js – Error: Minified React error #200” ausgegeben werden.

    Entweder Ihr l?scht/verschiebt das Plugin über einen FTP-Client in einen anderen Ordner, oder geht gleich in die Datei /wp-content/plugins/duplicate-post-page-menu-custom-post-type/duplicate-post-page-menu-cpt.php in Zeile 144 und ?ndert das “tru” in “true” bei “if ( tru !== $support…..”

            if ( true !== $support && $diff_days >= 2 ) {

    Oder ihr fügt der /wp-config.php im Hauptverzeichnis unsaubererweise vorübergehend ganz oben gleich ein:

    define ('tru', true);

    Wenn Ihr keinen FTP-Zugang habt, sieht es gerade schlecht aus, da auch das deaktivieren eines Plugins über die URL eine gültige wp-nonce verlangt…

    PS: duplicate of https://www.ads-software.com/support/topic/critical-error-in-admin-4/

    • This reply was modified 2 months, 2 weeks ago by ingonieur.

    Changing code as suggested is difficult as this change broke access to Admin / Plugins. This needs to be fixed as a hotfix ASAP.

    Thread Starter apkbayern

    (@apkbayern)

    Vielen Dank / Thanks so much! ??

    Ich werde das lieber mal an unsere Agentur geben, und schauen, ob sie die Website dahingehend per FTP fixen k?nnen. Ich habe das Plug-in zun?chst deinstalliert und kann so zumindest wieder normal auf den Admin-Bereich zugreifen.

    Auf jeden Fall vielen lieben Dank für die qualifizierten Tipps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.