• Hi, we separate requests for external users (frontend) and internal users (wp-admin), the external server uses readonly db, but we just notice that Elementor inserts metadata (meta key “_elementor_css”) into postmeta table in wp_enqueue_styles when visiting the frontend page, as a result, it causes db permission error.

    I can reproduce this as following:
    – edit any post that built with Elementor, made any changes, save, the meta “_elementor_css” is removed but not re-created
    – then visit the post frontend page, it inserts “_elementor_css” meta

    We are using version 3.1.4, it’s a bit old but I checked the latest version and I believe this logic didn’t change, but correct me if I am wrong.

    Is it better to save the “_elementor_css” meta when the post is just updated in wp-admin instead of on frontend?
    Any other suggestions to avoid this problem when using readonly db?

    Please advise, much appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Can you please send me the URL of the site?

    Thread Starter leonlx126

    (@leonlx126)

    This is one of the page that built with Elementor: https://get.investors.com/ibd/ibd-5-days-of-chart-reading/

    We do use Pro, but I don’t think this is relevant.

    If it helps, below is the error message and code trace.

    The error message:
    PHP message: WordPress database error INSERT command denied for table ‘wpm_postmeta’ for query INSERT INTO wpm_postmeta (post_id, meta_key, meta_value) VALUES (…)

    The code trace:
    wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, Elementor\Frontend->enqueue_styles, Elementor\Core\Files\CSS\Post->enqueue, Elementor\Core\Files\CSS\Base->enqueue, Elementor\Core\Files\CSS\Base->update, Elementor\Core\Files\CSS\Post->update_meta, update_post_meta

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Looking at your site, you are an Elementor Pro v3.1.1 user. The developer can’t have a conversation with customers here. That’s not permitted for anyone.

    For pro or commercial product support please contact the developer directly on their site. This includes any pre-sales topics as well.

    https://my.elementor.com/

    As the developer is aware, commercial products are not supported in these forums. I am sure they will have no problem supporting you there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Readonly DB’ is closed to new replies.