Getting Started

Deployment Deployment - Diagnose Migrations Staging

Site Management

Backups Client Reporting Passwords Plugin Automation Plugin Management - Global Plugins & Themes - Diagnose Plugins & Themes - General Plugins & Themes - Git Plugins & Themes - Logs Must Install White Label WordPress Updates

Caching & Performance

Caching Caching - Blogs/Articles Caching - Diagnose Caching - Git Caching - WooCommerce Redis Optimize & Scale

Security

Security Security - Firewall

SMTP, CDN & DNS

SMTP SendGrid CDN CDN - AWS CDN - Cloudflare CDN - Diagnose Domains & DNS

Server & Tools

Analytics & Logs CRON Jobs Database Debug Tool Git Monitoring PHP Settings Redirects SEO Tools Server Errors sFTP SSL

Staq Billing

Staq Billing > Account Staq Billing > Client Staq Billing > Setup

Media

Media Media - Diagnose Media - Optimize

Accounts & Billing

Accounts & Billing

General

WordPress Hosting Website Diagnose Troubleshoot - Other

Divi Theme: Object of class WP_Post could not be converted to string


On this page

    Issue

    If you’re using a Divi website and randomly experience an issue such as “There has been a critical error on this website”, there’s a high chance that the et_divi option is corrupted.

    Below is a quick solution to fix it

    Investigation

    Follow the prompts below:

    1. Firstly, go into the Staq Panel for the site in question and click Debug.
    2. Then, Enable Debug.
    3. Then, click WordPress tab
    4. Go back to the WordPress site > Appearance > Themes and try to generate the error message. You will either generate the error message by clicking Themes  or by activating Divi
    5. Go back to Staq Panel and click Refresh under the WordPress logs tab

    If you see this same issue, then the solution below will assist:

    In summary, the issue is this Uncaught Error: Object of class staClass could not be converted to string

    Solution

    Go to the Plugins list and install Code Snippets.

    Then, open the plugin and create a snippet and paste this code:

    $empty = array();

    update_option(‘et_divi’, $empty);

    Make sure you Save Changes and Activate the snippet:

    Clear Divi Cache

    Soon after, clear the Divi cache if static CSS has been applied by going to Divi > Builder > Advanced and click Clear if Static CSS File Generation is Enabled:

    After that, confirm if the Divi theme loads.

    Need some help?

    We all do sometimes. Please reach out to our support team by dropping us a support ticket. We will respond fast.