Support » Plugin: Responsive Menu - Create Mobile-Friendly Menu » Bug with Additional Content

  • Resolved protesilao

    (@protesilao)


    Hello,
    I have a problem with “Additional Content”, if I try to add code in “Additional Content” space the code work perfectly but if the content is more than 5000 character (Type) the plug-in doens save the content written.

    Let me know as soon as possible.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Peter Featherstone

    (@peterfeatherstone-1)

    Hey there,

    That doesn’t sound like a bug but a limit in the value field in the database.

    5000 characters sounds like a lot for a single option field in my plugin.

    The best thing would be to create your own shortcode with the data and just place the shortcode in there instead.

    All the best

    Peter

    protesilao

    (@protesilao)

    I know, but sometime we have a problem with shortcodes…
    If the problem is a limit setting on the database, you have to change the limit about the “Additional Content” field on the plug-in.

    Let me know when this limit is eliminate.

    • This reply was modified 3 years ago by protesilao.
    • This reply was modified 3 years ago by protesilao.
    Peter Featherstone

    (@peterfeatherstone-1)

    Hi there,

    I’ve just checked the wp_options table and they indeed have a LONGTEXT type for the value field of each option so I will do some testing with changing the type before releasing for the next version.

    Unfortunately, that will not help you going forward as your database has already been created, but can you try manually changing the database column type to LONGTEXT and let me know if you get any issues?

    If you have a problem with shortcodes then that is a separate issue that you need to solve, as any shortcode is accepted by my plugin in that area for this exact reason.

    Please let me know if it works for you after updating the column field type.

    Peter

    protesilao

    (@protesilao)

    What is the name of the table on the database?

    Peter Featherstone

    (@peterfeatherstone-1)

    Hey there,

    It is just called wp_responsive_menu

    Peter

    protesilao

    (@protesilao)

    The column “menu_additional_content” (about table “wpbu_responsive_menu_pro”) has this value setted: VARCHAR(5000).

    Probably is this limit to change, but i try to change it without succed, I try with this command:

    ALTER TABLE wpbu_responsive_menu_pro MODIFY menu_additional_content VARCHAR(100000);

    but I get this SQL message:

    #1054 – Unknow colum ‘menu_additional_content’ in ‘wpbu_responsive_menu_pro’“.

    • This reply was modified 3 years ago by protesilao.
    • This reply was modified 3 years ago by protesilao.
    • This reply was modified 3 years ago by protesilao.
    Peter Featherstone

    (@peterfeatherstone-1)

    Hey there,

    You are trying to change a column called menu_additional_content which doesn’t exist. The column is called value.

    It says in the error message Unknown column, which is your clue. You can’t change a columns field type per field, you need to change it for the whole column.

    Also, as per my previous message, change it to a LONGTEXT type instead to match WordPress wp_options table.

    All the best

    Peter

    I doesn’t succeded to change a columns field type, try you and post me the step by step solution, please.

    • This reply was modified 2 years, 12 months ago by protesilao.

    Hey there,

    There is no step by step instructions.

    This is not a plugin issue but a MySQL database issue as such I would ask your DBA ir failing that your webhost and finally search on Google (that is all I would be doing for you anyway.

    All the best

    Peter

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Bug with Additional Content’ is closed to new replies.