Wordpress Critical Error after Activating Plugin
- Dominant language
- PHP
- Stars
- 21
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
**DESCRIPTION:**
After installing LBRYPress on my self-hosted Wordpress site (cahlen.org) and activating the plugin, the Wordpress /wp-admin URL shows a critical error. I cannot access the Plugins menu to deactivate LBRYPress, and must do so via SFTP.
This occurs whether or not the LBRY service is running on the server.
**REPRO STEPS:**
1) Log into self-hosted Wordpress site
2) Navigate to 'Plugins > Add New > Upload Plugin'
3) Upload 'lbrypress-master.zip'
4) Click 'Activate Plugin'
**Results:** Wordpress critical error and no access to /wp-admin
**Expected:** User is returned to Plugins menu
**ENVIRONMENT**:
WordPress version 5.3.3
Current theme: Lodestar (version 1.0.8)
Current plugin: LBRYPress (version 0.0.1)
PHP version 7.2.24-0ubuntu0.18.04.4
Error Details
=============
An error of type E_ERROR was caused in line 221 of the file /var/www/html/wp-content/plugins/lbrypress-master/classes/LBRY_Daemon.php. Error message: Uncaught Error: Call to undefined function curl_init() in /var/www/html/wp-content/plugins/lbrypress-master/classes/LBRY_Daemon.php:221
Stack trace:
#0 /var/www/html/wp-content/plugins/lbrypress-master/classes/LBRY_Daemon.php(79): LBRY_Daemon->request('account_balance')
#1 /var/www/html/wp-content/plugins/lbrypress-master/classes/LBRY_Admin.php(279): LBRY_Daemon->wallet_balance()
#2 /var/www/html/wp-includes/class-wp-hook.php(288): LBRY_Admin->wallet_balance_warning('')
#3 /var/www/html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#4 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#5 /var/www/html/wp-admin/admin.php(170): do_action('admin_init')
#6 /var/www/html/wp-admin/plugins.php(10): require_once('/var/www/html/w...')
#7 {main}
thrown

**LBRY ADDRESS:**
bZSqrVdpxt5KJdn2eGMUzT9Jn3gEiRet7b
mail@cahlen.org
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce activation on WordPress 5.3.3 with the stated PHP environment, then inspect classes/LBRY_Daemon.php around line 221 and the call from classes/LBRY_Admin.php line 279. Trace the activation-time admin hook and confirm the behavior when curl_init is unavailable. Done means activating LBRYPress no longer causes a critical error and returns the user to the Plugins menu.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100