wordpress 多站點的 Elementor 編輯器無法在子站點正常開啟

正在檢視 10 個帖子:11-20 (共 23 個帖子)
  • 作者
    帖子
  • 9324290
    參與者
    • 文章數量: 26
    @9324290
    樓主
    
    ### wp-core ###
    
    version: 5.5.1
    site_language: zh_CN
    user_language: zh_CN
    timezone: Asia/Shanghai
    permalink: /%category%/%year%%monthnum%%day%%post_id%
    https_status: true
    multisite: true
    user_registration: false
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 10
    site_count: 2
    network_count: 1
    dotorg_communication: true
    
    ### wp-active-theme ###
    
    name: Hello Elementor(hello-elementor)
    version: 2.3.0
    author: Elementor 團隊
    author_website: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    parent_theme: none
    theme_features: core-block-patterns, menus, post-thumbnails, automatic-feed-links, title-tag, html5, custom-logo, editor-style, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider
    theme_path: /home/wwwroot/www/domain/dorr.cn/web/wp-content/themes/hello-elementor
    
    ### wp-themes-inactive (4) ###
    
    Astra: version: 2.5.5, author: Brainstorm Force
    B2: version: 2.4.8, author: Li Ruchun
    Dorr: version: 0.1.5, author: 子主題模版
    WebStacks PRO: version: 2.0406, author: iowen
    
    ### wp-plugins-active (6) ###
    
    Elementor: version: 3.0.10, author: Elementor.com
    Elementor Pro: version: 3.0.5, author: Elementor.com
    WordPress Multisite User Sync/Unsync: version: 1.2.0, author: Obtain Infotech
    WPJAM BASIC: version: 4.4.3, author: Denis
    WPJAM 分類管理: version: 3.1, author: Denis
    簡數資料採集和釋出平臺: version: 2.4.4, author: keydatas
    
    ### wp-plugins-inactive (8) ###
    
    Content Aware Sidebars: version: 3.13, author: Joachim Jensen - DEV Institute
    JWT Authentication for WP-API: version: 1.2.6, author: Enrique Chavez
    Post Type Switcher: version: 3.2.0, author: John James Jacoby
    Starter Templates: version: 2.3.6, author: Brainstorm Force
    TFPosts Addon For Elementor: version: 1.0.1, author: Themesflat
    Ultimate Addons for Gutenberg: version: 1.17.0, author: Brainstorm Force
    WPForms Lite: version: 1.6.2.3, author: WPForms
    wphave - Admin: version: 2.2, author: Martin Jost
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1800
    imagemagick_version: ImageMagick 7.0.8-15 Q16 x86_64 2020-04-13 https://imagemagick.org
    file_uploads: File uploads is turned off
    post_max_size: 20M
    upload_max_filesize: 20M
    max_effective_size: 20 MB
    max_file_uploads: 10
    imagick_limits:
    imagick::RESOURCETYPE_AREA: 15 GB
    imagick::RESOURCETYPE_DISK: -1
    imagick::RESOURCETYPE_FILE: 38400
    imagick::RESOURCETYPE_MAP: 15 GB
    imagick::RESOURCETYPE_MEMORY: 8 GB
    imagick::RESOURCETYPE_THREAD: 2
    gd_version: bundled (2.1.0 compatible)
    ghostscript_version: not available
    
    ### wp-server ###
    
    server_architecture: Linux 3.10.0-957.5.1.el7.x86_64 x86_64
    httpd_software: nginx/1.12.2
    php_version: 7.3.21 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 1000
    time_limit: 20
    memory_limit: 115M
    admin_memory_limit: 256M
    max_input_time: 60
    upload_max_filesize: 20M
    php_post_max_size: 20M
    curl_version: 7.29.0 NSS/3.36
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 5.7.27
    client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/wwwroot/www/domain/dorr.cn/web/wp-content
    WP_PLUGIN_DIR: /home/wwwroot/www/domain/dorr.cn/web/wp-content/plugins
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    
    

    這個是子站點的資訊。

    詩語
    管理員
    • 文章數量: 5,932
    @feibisi

    已啟用外掛裡去停用除了 elementor 以為的全部外掛,然後再測試。

    9324290
    參與者
    • 文章數量: 26
    @9324290
    樓主

    保留了 Elementor  和 Elementor Pro ,還是無法開啟。

    我覺得是偽靜態的問題,因為我用了一個偽靜態規則 (在 #37173) 可以正常開啟 Elementor 編輯器,但是上傳媒體庫無法正常顯示。

    所有我想,能不能麻煩一下把兩個偽靜態規則合併最佳化看看😄

    現在用的論壇偽靜態

    rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
    if (!-e $request_filename){
    rewrite ^.+?(/wp-.*) $1 last;
    rewrite ^.+?(/.*\.php)$ $1 last;
    rewrite ^ /index.php last;
    }

    詩語
    管理員
    • 文章數量: 5,932
    @feibisi

    我們站用的就是這個,你可以試試看

    rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
    if (!-e $request_filename){
    	rewrite ^.+?(/wp-.*) $1 last;
    	rewrite ^.+?(/.*\.php)$ $1 last;
    	rewrite ^ /index.php last;
    }

    上傳媒體庫無法正常顯示沒弄懂是哪裡上傳不行,後臺媒體庫也不行你可以 F12 然後截圖錯誤。

    國產作者的外掛沒特殊需要不要混用。

    9324290
    參與者
    • 文章數量: 26
    @9324290
    樓主

    現在用的就是:

    rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
    if (!-e $request_filename){
    rewrite ^.+?(/wp-.*) $1 last;
    rewrite ^.+?(/.*\.php)$ $1 last;
    rewrite ^ /index.php last;
    }

    用了 #37173 樓的偽靜態規則,媒體庫上傳圖片不顯示,且開啟圖片連結 404(子站點有自定義上傳路徑);

    用了論壇的偽靜態規則,媒體庫的圖片和圖片連結能正常顯示了,但是 Elementor 編輯器無法開啟;

    9324290
    參與者
    • 文章數量: 26
    @9324290
    樓主

    只啟用 Elementor 和 Elementor pro 外掛,主題也是 hello Elementor

    詩語
    管理員
    • 文章數量: 5,932
    @feibisi

    估計是你伺服器或者 WordPress 配置的不對,上面的偽靜態我們很多站都在用,沒出現過這種情況。

    可以嘗試開啟 debug 然後仔細除錯下。

    9324290
    參與者
    • 文章數量: 26
    @9324290
    樓主

    你用 子目錄多站點 試一下

    詩語
    管理員
    • 文章數量: 5,932
    @feibisi

    說我們一直在用你還不信,每個新版本出來都會在下面的測試站做測試,子目錄正常,你伺服器或者部署的問題。

    https://demo.weixiaoduo.com/elementor

    9324290
    參與者
    • 文章數量: 26
    @9324290
    樓主

    問題是我用新裝的伺服器弄也是這個情況呀,那個偽靜態帖子 https://bbs.weixiaoduo.com/topic/34228#post-34234 也有說到呼叫不了 api ,你們後面有討論啥解決方案了嗎?

正在檢視 10 個帖子:11-20 (共 23 個帖子)
  • 哎呀,回覆話題必需登入。

話題資訊

  • 當前位於:WordPress Multisite
  • 22 條回覆
  • 2 個參與人
  • 最後回覆:<a href="https://bbs.weixiaoduo.com/users/feibisi/" title=" 檢視詩語的個人資料" class="bbp-author-link"><span class="bbp-author-name"> 詩語</span></a>
  • 上次活動:<a href="https://bbs.weixiaoduo.com/topic/37166/page/3/#post-37221" title=" 回覆至:wordpress 多站點的 Elementor 編輯器無法在子站點正常開啟">4 年、 6 月前</a>