WordPress Recurring 500/503 Errors, Fatal Theme Bug, Slow Queries (Custom Theme + Events Calendar)

Posted 2 hours ago

Worldwide

Summary

Our WordPress site (Cloudways-hosted, custom theme "mangala-shri-bhuti," running WooCommerce + The Events Calendar) has had a pattern of recurring instability over the past several days — different specific errors each time, but a consistent shape: slow Events Calendar queries, PHP worker exhaustion, and now a fatal PHP error, together causing intermittent outages for both site visitors and backend/admin users. What we know so far (from our host's diagnostics and our own investigation): A fatal PHP error in our custom theme, header-dharma-post-meta-info.php line 6 — appears to loop over post taxonomy terms without handling the case where get_the_terms() returns false (no terms assigned). Currently causing ~50% of page loads to fail with HTTP 500. The Events Calendar plugin's date-filtered/paginated pages are taking 150-255 seconds to load, tying up PHP workers and contributing to server-wide slowdowns (load average 26-43 on a 4-core server). Our PHP-FPM configuration allows up to 40 concurrent workers × 2GB memory each (80GB theoretical) against only 8GB of actual server RAM — a mismatch that has previously caused repeated out-of-memory crashes. We enabled Redis at the server level, but WordPress may not yet be fully using it as a persistent object cache — needs verification. We identified and blocked two bot IPs that were aggressively crawling paginated event-archive URLs, which had been a contributing traffic trigger. A cosmetic PHP warning in Elementor (dynamic-tags) has also appeared in logs but is confirmed unrelated to the outages. What we need: someone who can look at this holistically rather than just patch the latest reported error — diagnose whether these are one root cause manifesting differently under load, or several distinct issues, fix the theme bug, resolve or substantially improve the Events Calendar query performance, correct the PHP worker/memory configuration, and confirm the object cache is actually functioning. We can provide full hosting diagnostic reports, server access, and everything we've investigated so far. Deliverables: Fatal theme error fixed and verified (including for posts/admin views with no assigned topic) Events Calendar date-filtered pages loading in a reasonable time PHP-FPM worker/memory settings corrected to match actual server resources Object cache confirmed active and functioning (via WordPress Site Health) Brief written report: root cause(s) identified, what was changed, and any remaining risk

  • Less than 30 hrs/week
    Hourly
  • 1-3 months
    Duration
  • Expert
    Experience Level
  • $45.00

    -

    $60.00

    Hourly
  • Remote Job
  • Ongoing project
    Project Type
Skills and Expertise
Mandatory skills
Cloudflare
WordPress
PHP
Activity on this job
  • Proposals:20 to 50
  • Last viewed by client:1 hour ago
  • Hires:
    1
  • Interviewing:
    1
  • Invites sent:
    5
  • Unanswered invites:
    3
About the client
Member since Aug 10, 2018
  • United States
    New York12:32 AM
  • $17K total spent
    15 hires, 2 active
  • 372 hours
  • Large company (100-1,000 people)

Explore similar jobs on Upwork

OPAL/Observe EngineerHourly‐ Posted 1 week ago
Regex Writing
Penetration Testing
Information Security
Vulnerability Assessment
Security Analysis
Firewall

How it works

  • Post a job icon
    Create your free profile
    Highlight your skills and experience, show your portfolio, and set your ideal pay rate.
  • Talent comes to you icon
    Work the way you want
    Apply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
  • Payment simplified icon
    Get paid securely
    From contract to payment, we help you work safely and get paid securely.
Want to get started? Create a profile

About Upwork

  • Rating is 4.9 out of 5.
    4.9/5
    (Average rating of clients by professionals)
  • G2 2021
    #1 freelance platform
  • 49,000+
    Signed contract every week
  • $2.3B
    Freelancers earned on Upwork in 2020

Find the best freelance jobs

Growing your career is as easy as creating a free profile and finding work like this that fits your skills.

Trusted by

  • Microsoft Logo
  • Airbnb Logo
  • Bissell Logo
  • GoDaddy Logo