Error On My Wordpress Website. Need Help

cooldude1234

Junior Member
Mar 27, 2009
176
44
Hello all,

I have a Woocommerce website where I sell digital products. The front end of the website is working. I can see products and clients can place orders. But Wordpress Admin Dashboard is not working. I cannot do anything at the backend. Cant see orders or change plugins or anything at all. Please see the attached images for reference. When I click on anything, it gives 403 Error.

Here are the error logs:

[28-Feb-2024 11:36:05 UTC] PHP Warning: Undefined array key "host" in /home2/allkeyst/public_html/wp-includes/canonical.php on line 714
[28-Feb-2024 11:36:05 UTC] PHP Warning: Undefined array key "host" in /home2/allkeyst/public_html/wp-includes/canonical.php on line 725
[28-Feb-2024 11:36:05 UTC] PHP Warning: Undefined array key "host" in /home2/allkeyst/public_html/wp-includes/canonical.php on line 728
[28-Feb-2024 11:36:05 UTC] PHP Warning: Undefined array key "scheme" in /home2/allkeyst/public_html/wp-includes/canonical.php on line 749
[28-Feb-2024 11:36:05 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home2/allkeyst/public_html/wp-content/plugins/pixelyoursite/includes/functions-common.php on line 763
[28-Feb-2024 11:36:05 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home2/allkeyst/public_html/wp-content/plugins/header-promo/header-promo.php on line 64
[28-Feb-2024 12:14:41 UTC] id was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_PhonePe->process_payment, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
[28-Feb-2024 12:14:41 UTC] order_key was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_PhonePe->process_payment, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
[28-Feb-2024 12:16:47 UTC] PHP Warning: Undefined array key "state" in /home2/allkeyst/public_html/wp-content/plugins/phonepe-payment-solutions/common/PPEX_PG_Callback.php on line 66

If anyone can help, will really appreciate it.

Thanking you
 

Attachments

  • Screenshot 2024-02-28 192247.png
    Screenshot 2024-02-28 192247.png
    22.8 KB · Views: 32
  • Screenshot 2024-02-28 192112.png
    Screenshot 2024-02-28 192112.png
    26.3 KB · Views: 34
From first look

The script looks probably old and is causing conflict or issues From WooCommerce 3.0 onwards, there are some changes like, Instead of using $order->id, you should use $order->get_id().
Instead of using $order->order_key, you should use $order->get_order_key()
 
The issue is solved now. This video helped. I thought it is a big issue and such a small fix wont solve it but it did.


I am not that tech savy but if anyone can help what exactly it did by removing those lines from the .htaccess and how it helped, it will be really helpful.
 
That line of code was preventing .py, .exe, and .php files from being executed. If you just removed "php" from the <FilesMatch> directive that would work too. You also have an invalid .htaccess file because I'm not seeing a closing </FilesMatch> for the first line. You can run your .htaccess file through a validator: https://htaccess.madewithlove.com/

The better question is, who put that code there and why....
 
The hosting server upgraded litespeed on the servers and after that this issue had started. Had followed up with them but they were too busy to look into it and solve it. So posted here and started searching on YouTube for solutions. And this is how I came across the video and followed it to solve it.

I don't know if the litespeed upgrade caused the issue or who, I have changed the password of my wordpress Admin and CPanel for now. Any other precautions that I should take?
 
The hosting server upgraded litespeed on the servers and after that this issue had started. Had followed up with them but they were too busy to look into it and solve it. So posted here and started searching on YouTube for solutions. And this is how I came across the video and followed it to solve it.

I don't know if the litespeed upgrade caused the issue or who, I have changed the password of my wordpress Admin and CPanel for now. Any other precautions that I should take?

I don't know why upgrading litespeed would do that unless your hosting provider scripted something that went wrong. Who is your hosting provider? Use 2FA when possible and change any other passwords associated with that account.
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock