-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange issue creating custom menu #3986
Comments
I can 't repeat this problem. The menu is created and renamed without problems. And it's visible in the Menu Manager. |
@sudakk on new install or on updated system? |
@Serios on updated. |
@Serios 2.2.1 from e107.org? Check database validity and export one of the problematic records and put it here. If you use Chrome, use a different browser. |
@Jimmi08 @sudakk I managed to track the problem in relation with the php version of the server. On php ver 7.3 the problem exist. If php version is set to the minimum required 5.6 the problem no longer exist and menu_name is properly submitted to the DB. Confirmed it by trying both on my local server and on production server as well. @Jimmi08 Can you test this for additional confirmation? |
@Serios try 7.2, e107 officially support only this version, I use only this one or 5.6. I will need to install xampp with 7.3. Yes, today I can :) |
Thanks, too complicated. I know better and easier way :) for somebody who is not server/administrator guy :) |
Hm, now I can edit it in Chrome too. I couldn't before.
but
Edit, No, I can't point where that field is editable and when not. But this happens. |
That SEF-URL error is because of this: |
NULL value for menu_name is caused by this line:
before this, it has the correct value. |
This is fix (2 places): For php 7.3. hyphen has to be escaped. "It is advised to check all the regex you are using in your applications and test them with PHP 7.3." |
The ability to save a menu\page with an empty both fields menu_name & page_title occurs because there is no check in function beforeUpdate (in cpage.php) as when creating a menu\page in function beforeCreate. If you add this code, you will receive an error when you try to save an empty both fields menu_name & page_title:
|
@Jimmi08 post updated according to your note. |
Using latest v.2.2.1 I can't create custom menu to use in menu manager with my theme. Menu is actually created trough Custom pages/Menus but menu_name field is not saved to the DB even if I try to modify existing one the menu_name field gets blank and thus is not listed in Menu manager under custom menus. Menu is created with name, title, text and icon.
The text was updated successfully, but these errors were encountered: