Wordpress wp-admin fatal error - php

I have just switched my website's hosting and it is giving me error in opening the wordpress admin panel page. Can any body help me out. Thankyou
Fatal error: Uncaught Error: Call to undefined function eregi() in
/home/atifchat/public_html/pakistanivoicechat.com/wp-content/plugins/google-bot-bling/google-bot-bling.php:59
Stack trace: #0
/home/atifchat/public_html/pakistanivoicechat.com/wp-includes/class-wp-hook.php(298):
thisismyurl_google_bot_bling_init_code('') #1
/home/atifchat/public_html/pakistanivoicechat.com/wp-includes/class-wp-hook.php(323):
WP_Hook->apply_filters(NULL, Array) #2
/home/atifchat/public_html/pakistanivoicechat.com/wp-includes/plugin.php(453):
WP_Hook->do_action(Array) #3
/home/atifchat/public_html/pakistanivoicechat.com/wp-settings.php(448):
do_action('init') #4
/home/atifchat/public_html/pakistanivoicechat.com/wp-config.php(104):
require_once('/home/atifchat/...') #5
/home/atifchat/public_html/pakistanivoicechat.com/wp-load.php(37):
require_once('/home/atifchat/...') #6
/home/atifchat/public_html/pakistanivoicechat.com/wp-admin/admin.php(31):
require_once('/home/atifchat/...') #7
/home/atifchat/public_html/pakistanivoicechat.com/wp-admin/in in
/home/atifchat/public_html/pakistanivoicechat.com/wp-content/plugins/google-bot-bling/google-bot-bling.php
on line 59

What hosting did you switch from as well as what hosting did you switch it to? A lot of hosts for WordPress will give you support for this kind of thing especially if you just switched to their services so I would probably call support and give them the URL so that they can see the error and it is likely that they will give you some help. If they don't, try this article: http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
I remember migrating a site and having to FTP in to rename the plugins folder to plugins.hold or something and then I could login then I went back and renamed it again. But just to be safe I would follow the article and not my words.

The eregi() function, actually, the entire ereg_* family of functions was removed entirely in PHP 7.x. According to your error log, you have a voice chat plugin still using those functions.
Stack trace: #0 /home/atifchat/public_html/pakistanivoicechat.com/wp-includes/class-wp-hook.php
Suggestion: Contact plugin developer and ask them to update.

Related

Cannot acces wp-admin, one error left, how to solve this?

I probably messed my wordpress site up by updating the site before updating plug ins, and now I cannot acces wp-admin anymore.
I got a number of error messages, most of which I could solve by changing something in the given file, but I do not know how to solve this:
Fatal error: Uncaught Error: Class "WP_Widget" not found in …/wp-content/plugins/category-posts/class-widget.php:22 Stack trace: #0 .../wp-content/plugins/category-posts/cat-posts.php(38): require_once() #1 .../wp-settings.php(359): include_once('...') #2 .../wp-config.php(90): require_once('...') #3 .../wp-load.php(37): require_once('...') #4 .../wp-admin/admin.php(34): require_once('...') #5 .../wp-admin/index.php(10): require_once('...') #6 {main} thrown in .../wp-content/plugins/category-posts/class-widget.php on line 22
Any suggestions are greatly appreciated.
It seems like an issue with one of your plugins, category-posts.
I would suggest, if you got access to the site's backend, navigate to .../wp-content/plugins/ and delete the category-posts folder. This will delete the plugin which causes the issue, and hopefully resolve the problem. You can always download the plugin folder before deleting it, just so you've got it backed up.
Can you rename category-posts plugin to any other name so that the plugin will automatically deactivate. After that can you take a look to login to wp-admin. then from there try reinstalling the same plugin or upload latest version of plugin.

I can't edit my home page using elementor in wordpress [duplicate]

This question already has answers here:
Reference - What does this error mean in PHP?
(38 answers)
Closed 3 years ago.
whenever i try to edit my home page using elementor in wordpress. it says
The site is experiencing technical difficulties.
Please check your site admin email inbox for instructions.
I contacted my host provider but they were unable to solve this issue They provided me with this code and said that the error is related to your woocommerce plugin I also deleted the plugin and installed it again but same case happened
[02-Aug-2019 07:28:19 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_cart() on null in /home/hazaraxp/public_html/wp-content/plugins/woocommerce-quick-buy/includes/common-functions.php:50
Stack trace:
#0 /home/hazaraxp/public_html/wp-content/plugins/woocommerce-quick-buy/includes/class-frontend.php(120): wc_qb_product_in_cart(269)
#1 /home/hazaraxp/public_html/wp-content/plugins/woocommerce-quick-buy/includes/class-quick-buy-auto-add.php(83): WooCommerce_Quick_Buy_FrontEnd->generate_button(Array)
#2 /home/hazaraxp/public_html/wp-includes/class-wp-hook.php(286): WooCommerce_Quick_Buy_Auto_Add->add_shop_quick_buy_button('')
#3 /home/hazaraxp/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#4 /home/hazaraxp/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#5 /home/hazaraxp/public_html/wp-content/plugins/woocommerce/templates/content-product.php(65): do_action('woocommerce_aft...')
#6 /home/hazaraxp/public_html/wp-includes/template.php(724): require('/home/hazaraxp/...')
#7 /home/ha in /home/hazaraxp/public_html/wp-content/plugins/woocommerce-quick-buy/includes/common-functions.php on line 50
There is a problem that do not set up properly or a plugin that wrongly modifies WordPress' internal object cache (which is basically a no-op). This could be configured by your host too.
Try disabling all plugins to see if this still happens.
Your Woo Sync error completely different though. You should ask about that in a separate thread if needed.
Thanks !!

PHP Fatal error: Uncaught Error: Call to undefined function as_next_scheduled_action()

When I tried to update Woocommerce plugin into new version (3.6.1) I got this error
[21-Apr-2019 20:29:10 UTC] PHP Fatal error: Uncaught Error: Call to
undefined function as_next_scheduled_action() in
/home/tleelxvn/fairo.pk/wp-
content/plugins/woocommerce/includes/queue/class-wc-action-queue.php:127
Stack trace:
#0 /home/tleelxvn/fairo.pk/wp-content/plugins/woocommerce/includes/admin/marketplace-suggestions/class-wc-marketplace-updater.php(30):
WC_Action_Queue->get_next('woocommerce_upd...')
#1 /home/tleelxvn/fairo.pk/wp-includes/class-wp-hook.php(286): WC_Marketplace_Updater::init('')
#2 /home/tleelxvn/fairo.pk/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 /home/tleelxvn/fairo.pk/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#4 /home/tleelxvn/fairo.pk/wp-settings.php(505): do_action('init')
#5 /home/tleelxvn/fairo.pk/wp-config.php(79): require_once('/home/tleelxvn/...')
#6 /home/tleelxvn/fairo.pk/wp-load.php(37): require_once('/home/tleelxvn/...')
#7 /home/tleelxvn/fairo.pk/wp-cron.php(39): require_once('/home/tleelxvn/...')
#8 {main}
thrown in /home/tleelxvn/fairo.pk/wp-content/plugins/woocommerce/includes/queue/class-wc-action-queue.php
on line 127
I came up against this exact problem today. My situation may be unique, but if what I learned helps anyone, all the better.
In my situation, I have code within my theme where I'll force load WooCommerce if it isn't loaded. The site requires WooCommerce on an AJAX call that otherwise knows nothing about WordPress. In normal WordPress requests, the plugin is already loaded, so my code block does nothing.
However, I received this error when I stood up a new site with the same repo and I had not yet activated the WooCommerce plugin. As soon as I activated it, the error disappeared. The reason the error occurred is because the required file only gets included on the plugins_loaded action, which in my scenario had already been run by the time I force-loaded WooCommerce.

mySQL Error while migrating WordPress Website locally

I am trying to migrate a live WordPress site to my localhost environment. And I believe that the PHP version on current hosting server is higher than my localhost environment version, which is causing some issue while migrating. As I don't know much about SQL code as well as how to interpret the error log, can you guide me on what I should be doing to rectify the error?
Followed is the error message I am getting:
Fatal error: Uncaught Error: Call to undefined function mysql_escape_string() in C:\xampp\htdocs\shag\wp-content\themes\twentyseventeen\functions.php:60
Stack trace:
#0 C:\xampp\htdocs\shag\wp-settings.php(425): include()
#1 C:\xampp\htdocs\shag\wp-config.php(89): require_once('C:\\xampp\\htdocs...')
#2 C:\xampp\htdocs\shag\wp-load.php(37): require_once('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\shag\wp-blog-header.php(13): require_once('C:\\xampp\\htdocs...')
#4 C:\xampp\htdocs\shag\index.php(17): require('C:\\xampp\\htdocs...')
#5 {main} thrown in C:\xampp\htdocs\shag\wp-content\themes\twentyseventeen\functions.php on line 60
define('WP_USE_EXT_MYSQL', true);
Would you please define above code in your wp-config.php? And check it. I think it's helpful for you.

WordPress regularly produces errors for cron.php, class-wp-hook.php and update.php

For a customer I set up a website in WordPress. The site got hacked and infected with malicious code, so I've re-uploaded all WordPress files and the files for the theme, changed all passwords, installed a security plugin and run several virus scans to remove every line of code, that was suspicious. The site worked normally after doing this, but now I get the following error:
Warning: Cannot call assert() with string argument dynamically in /mnt/web107/d1/74/58360774/htdocs/wp-includes/cron.php on line 1 Warning: call_user_func_array() expects parameter 1 to be a valid callback,
function 'wp_cron' not found or invalid function name in /mnt/web107/d1/74/58360774/htdocs/wp-includes/class-wp-hook.php on line 286
Fatal error: Uncaught Error: Call to undefined function wp_next_scheduled() in /mnt/web107/d1/74/58360774/htdocs/wp-includes/update.php:710 Stack trace: #0 /mnt/web107/d1/74/58360774/htdocs/wp-includes/class-wp-hook.php(286): wp_schedule_update_checks('')
#1 /mnt/web107/d1/74/58360774/htdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 /mnt/web107/d1/74/58360774/htdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#3 /mnt/web107/d1/74/58360774/htdocs/wp-settings.php(450): do_action('init')
#4 /mnt/web107/d1/74/58360774/htdocs/wp-config.php(126): require_once('/mnt/web107/d1/...')
#5 /mnt/web107/d1/74/58360774/htdocs/wp-load.php(37): require_once('/mnt/web107/d1/...')
#6 /mnt/web107/d1/74/58360774/htdocs/wp-blog-header.php(13): require_once('/mnt/web107/d1/...')
#7 /mnt/web107/d1/74/58360774/htdocs/index.php(22): require('/mnt/web107/d1/...')
#8 {main} thrown in /mnt/web107/d1/74/58360774/htdocs/wp-includes/update.php on line 710
The strange thing is, when the errors appear, I only need to re-upload all the WordPress core files and the website works properly for a few weeks again, but then the errors reappear.
Can someone explain me what causes these errors and how to fix them? I googled the errors but couldn't find a fix.
Check your server's cron tasks, it must be something there that tries to execute something, and that's whats causing the error.
Sorry for not being more specific but every hosting company has his own panel.
Regards,
Daniel

Categories