Skip to content
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

PHP 7.3 - SQL Insert error when creating page #3812

Closed
Moc opened this issue May 23, 2019 · 1 comment
Closed

PHP 7.3 - SQL Insert error when creating page #3812

Moc opened this issue May 23, 2019 · 1 comment
Labels
core: pages/menus type: bug A problem that should not be happening
Milestone

Comments

@Moc
Copy link
Member

Moc commented May 23, 2019

PHP Version
7.3.2

MySQL
10.3.13-MariaDB-log

PDO: Enabled
Mode: NO_ENGINE_SUBSTITUTION

Created new custom page when using PHP 7.3, error:

SQL Error #23000: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'menu_name' cannot be null
SQL QRY Error
Array
(
    [_FIELD_TYPES] => Array
        (
            [page_id] => int
            [page_title] => str
            [page_chapter] => str
            [page_template] => str
            [page_author] => int
            [page_text] => str
            [page_datestamp] => int
            [page_class] => str
            [page_rating_flag] => int
            [page_comment_flag] => int
            [page_password] => str
            [page_sef] => str
            [page_metakeys] => str
            [page_metadscr] => str
            [page_order] => str
            [page_fields] => json
            [menu_name] => str
            [menu_title] => str
            [menu_text] => str
            [menu_template] => str
            [menu_class] => int
            [menu_button_text] => str
            [menu_button_url] => str
            [menu_icon] => str
            [menu_image] => str
        )

    [data] => Array
        (
            [page_id] => 
            [page_title] => ssef
            [page_chapter] => 0
            [page_template] => default
            [page_author] => 1
            [page_text] => [html]<p>sefe</p>[/html]
            [page_datestamp] => 1558618321
            [page_class] => 0
            [page_rating_flag] => 0
            [page_comment_flag] => 0
            [page_password] => 
            [page_sef] => ssef
            [page_metakeys] => 
            [page_metadscr] => 
            [page_order] => 10001
            [page_fields] => 
            [menu_name] => 
            [menu_title] => 
            [menu_text] => 
            [menu_template] => default
            [menu_class] => 0
            [menu_button_text] => 
            [menu_button_url] => 
            [menu_icon] => 
            [menu_image] => 
        )

)

Working fine with PHP 7.1.

@Moc Moc added the type: bug A problem that should not be happening label May 23, 2019
@Moc Moc added this to the e107 2.2.1 milestone May 23, 2019
@CaMer0n
Copy link
Member

CaMer0n commented May 23, 2019

@Moc I have modified the table and removed the NOT NULL. It fixed it for me. How about you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core: pages/menus type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

2 participants