Okay
  Public Ticket #2696555
when I try to save a table or create a new one, my site breaks
Closed

Comments

  • spounch started the conversation

    Hello, when I try to save a table or create a new one, my site breaks in Wordpress, but also on the Internet. I must restore my site to regain use. What can I do in order to fix Wpdatatable. Best regard.

  • [deleted] replied

    Hi spounch

    Thank you for reaching out to us.

    Could you please add this to wp_config.php file to display errors so we can see what exactly the issue is

    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);

    if debugging is set to false please change it to true or if it doesn't exist please add this to the wp_config.php file

    define( 'WP_DEBUG', true );


  • spounch replied

    Thank you for your reply. I just gave it a try and saved a table, and also created a small table. Everything worked fine. I should point out that after restoring my site I took the precaution not to update the 'EWWW Image Optimizer' extension. Even though my site case is caused from Wpdatatable when creating a table or saving a table after modification. I think the 'EWWW Image Optimizer' extension is the cause of my site breakage. Can you confirm it ? Do you have customers who have encountered this same problem with the 'EWWW Image Optimizer' ? extension. Best regard.

  • spounch replied

    Finally the extension 'EWWW Image Optimizer' is not the cause of the breakage of the site. I tried to save a more complex table, but now there is a problem of not being able to save. I modified the 'wp_config.php' file as you advised me. Immediately the following message appeared:

    'G already defined in /var/www/clients/client1/web2/web/wp-config.php on line 99'

    Line 99 corresponds to the instruction: 'define (' WP_DEBUG ', true);'

    Otherwise, when I try to save a new table here is the error message that is displayed after saving:

    'Error There was an error while trying to save the table! Error undefined '

    Please let me know how to solve this problem. 

    Best regard.

  • [deleted] replied

    Hi spounch

    Thank you for your email.

    From the error message we can see that this constant has already been defined, so please navigate to the file again and delete WP_DEBUG you added and locate where it has already been defined and change the value from false to true.

    Do let me know if this helps.

  • spounch replied

    Thank you, for your advice, in fact I had not seen that the code 'WP_DEBUG' was already present a few lines above, and it was on 'FALSE', I copied the lines you advised me, and now here are the error lines displayed :

    ***Deprecated: Function create_function() is deprecated in /var/www/clients/client1/web2/web/wp-content/plugins/print-this-page/print-this-page.php on line 76

    ***Deprecated: The constructor method called for WP_Widget in tawhidurrahmandeareightWidget is deprecated since version 4.3.0 ! Utilisez __construct() à la place. in /var/www/clients/client1/web2/web/wp-includes/functions.php on line 4952

    ***Notice: Constant WP_MEMORY_LIMIT already defined in /var/www/clients/client1/web2/web/wp-config.php on line 90

    ***Notice: Constant WP_POST_REVISIONS already defined in /var/www/clients/client1/web2/web/wp-config.php on line 92

    Best regards




  • spounch replied

    Hello, by disabling the 'Print this page' plugin the first 2 errors have disappeared.

    For the next 2, I went to 'wp-config.php' and commented out the line corresponding to 'WP_MEMORY_LIMIT', and to 'WP_POST_REVISIONS'.

    Now I have no more error messages.

    Do the manipulations that I have just carried out seem the right ones to you ?

    Best regard.

  • [deleted] replied

    Hi spounch

    The first error message was from Print this page.

    The second from WP_Widget. The last two were from already defined constants, if you fixed that there should be no more issues with the table.

    Do let us know if this worked.

  • spounch replied

    Hello, maintenant, je n'ai plus de messages d'erreur. Best regards

  • [deleted] replied

    I'm glad to hear thatsmile.png

    Do let us know if there is anything else we can assist you with.

    Have a wonderful day!