Describe the bug
While trying to edit the "Order" page in Traffic & SEO section. I get the error "Property Meta->url_rewrite is not valid". This is a known error from older versions. After the error though the UI seems to "fall back" on the older style, before 1.7.5.0 version. If I try to delete the page from there I get 405 error of method not found
To Reproduce
The shop has 2 languages English and Greek. I'm trying to change the Order page greek name "蟺伪蟻伪纬纬蔚位委伪" for the "Rewritten URL" to English characters ("paraggelia");
Screenshots


Additionnal information
PrestaShop version: 1.7.5.0
PHP version: 7.2
Hi @hacchus,
I did not manage to reproduce the issue with PS1.7.5.0.
I attached a video record.
https://drive.google.com/file/d/1UsqjDGi8x56fSIv4C70xrFEWLmm4y8Hm/view
Could you please provide us with more info? We need more details to understand how we can reproduce your issue:
Don't you know how to get this information? Please read the following article:
http://build.prestashop.com/howtos/misc/how-to-create-bug-report/
Thanks!
It is a fresh installation of 1.7.5.0 on my local machine. I setup Cyprus as country during installation and English, Greek and Turkish languages are installed automatically.
In your screencast when you go to the "Order" page in Greek, the Rewritten URL value is "commande". In a fresh installation with Greek language the value is "蟺伪蟻伪纬纬蔚位委伪".
The error "Property Meta->url_rewrite is not valid" happens in 1.7.3, 1.7.4 and 1.7.5 Prestashop versions for the pages "Order" and "Sitemap". In every new Prestashop installation I have to delete these two pages and recreate them in order to be able to modify and save them.
In 1.7.5.0 the same error happens, but it additionally creates the problem of falling back to the older UI.
@hacchus, I tried with another fresh installation PS1.7.5.0 & it is OK.
https://drive.google.com/file/d/1mPIIriA9yuezUjWHtWBJ65TRDcV1TRC6/view
We need to retrieve the PHP error log and the debug mode report in order to find out what's wrong.
Thanks!
OK sorry I forgot to tell you that I always remove the Turkish language, from "International" -> "Localization" -> Languages.
I tried it again in a new installation without deleting Turkish language first and seems to work OK. If I remove Turkish language and try again, the problem appears.
Hi @hacchus,
Thanks for your feedback.
Very interesting.
I manage to reproduce the issue with PS1.7.5.0.
To reproduce the issue:

I tried with other languages during the installation => Nothing happens => OK.
Thanks!
Glad you could reproduce it. I checked in the database and there are many remnants of the deleted languages. Shouldn't they all be removed?
I ran an SQL command on the database and the problem gets fixed. This is the command: "DELETE FROM ps_meta_lang WHERE id_lang = 3" (Turkish language Id on my store is 3).
After this it's working properly.
@khouloudbelguith Do you have the same error message "Property Meta->url_rewrite is not valid" on 1.7.4.4 ?
@marionf, PS1.7.4.4, I tried to save a page with empty Friendly URL, I have this alert

Thanks!
Why with empty friendly url ?
What happens if you try the same scenario below ?
In fact the error "Property Meta->url_rewrite is not valid" happens with previous versions.
I think the fall back on the older legacy page is a "normal" behavior because the add/edit actions are not yet migrated @matks ?
@marionf, yes the same issue occurs with PS1.7.4.4.
https://drive.google.com/file/d/1JUi35nHOIed5WFpdQKd5UL2VDEzyTMzZ/view
Thanks!
Hello @khouloudbelguith do you reproduce this issue now that the page has been migrated ?
Hi @colinegin,
I did not manage to reproduce the issue with PS1.7.6.0beta1 => it is ok.
https://drive.google.com/file/d/1ZPb7mJAgtudqOrSyHR_CfGLT3SuG1JMU/view
I close the issue.
Thanks!
Most helpful comment
Glad you could reproduce it. I checked in the database and there are many remnants of the deleted languages. Shouldn't they all be removed?
I ran an SQL command on the database and the problem gets fixed. This is the command: "DELETE FROM ps_meta_lang WHERE id_lang = 3" (Turkish language Id on my store is 3).
After this it's working properly.