Fatal pluggable.php wordpress error - php

Fatal error: Call to undefined function wp_get_current_user() in /hermes/bosnaweb01a/b1513/ipg.framingnepalcom/wp-includes/capabilities.php on line 1329
I am getting the mentioned error in my wordpress site. I found the problem but couldn't find a permanent solution. What happens is the pluggable.php file is automatically erased from the database and ;the above error pops up disabling me to even access the admin panel. And the site gets back to normal after I upload the pluggable.php file manually. I tried downgrading wordpress, deactivating all plugins and so on. Please Help!!

Related

Problem with Wordpress site - no such file in directory

I wanted to log in to my wp-admin and for some reason my site is experiencing fatal error:
Fatal error: require_once(): Failed opening required '/data/web/virtuals/297382/virtual/www/domains/territy.net/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/deprecated.php' (include_path='.:/data/web/virtuals/297382/virtual') in /data/web/virtuals/297382/virtual/www/domains/territy.net/wp-content/plugins/jetpack-boost/vendor/jetpack-autoloader/class-version-loader.php on line 89
Thanks to internet I somehow got into the wp-admin when I deactivated all my plugins, but when I started to activate them again, all woocommerce plugins cannot be activated and showing me this error again.
Please help if you know how to solve this problem.
Thanks.
Petr
I wanted to log in to my wp-admin and for some reason my site is experiencing fatal error.

Fatal Errors Template Tags

I am working on an old WordPress site. Although the site is updated to the latest version of WordPress (5.9.1) it was apparently built on the twentyfouteeen theme.
Just lately, I am getting a fatal error on the Posts Page:
Fatal error: Uncaught Error: Call to undefined function twentyfourteen_categorized_blog()
The function is located in the template-tags.php file and it exists so the theme should be able to access it. In fact, I'm getting the fatal error on any page that calls a twentyfourteen function.
I copied the functions from template-tags.php to content.php which did in fact load posts but then gave me a different error Cannot redeclare twentyfourteen_categorized_blog()
I've never had to troubleshoot this kind of error and since the theme is old, I'm not sure how to go about it.
"Cannot redeclare twentyfourteen_categorized_blog()" means that your file is trying to declare the same function multiple times. Either the function is defined in two separate files or in two places in the same file.
I was able to resolve this by including template_tags.php in functions.php

How to fix "Fatal error: Uncaught Error: Call to undefined function get_header()"

I am trying to put this website back online. The error message is the following:
Fatal error: Uncaught Error: Call to undefined function get_header()
in
/homepages/25/d584099293/htdocs/clickandbuilds/X3DSYSTEMS/wp-content/themes/x3dprotheme/index.php:4
Stack trace: #0 {main} thrown in
/homepages/25/d584099293/htdocs/clickandbuilds/X3DSYSTEMS/wp-content/themes/x3dprotheme/index.php
on line 4
The client told me he "accidentally reset the domain".
First when I went on the website, I had an error message about Wordfence and I did what I needed to do to correct it (here what I did:
After moving a site or deleting some files, I see: PHP Fatal error: Unknown: Failed opening required /var/www/html/wordfence-waf.php
I removed the firewall setup manually.
Then I got this new error message about index.php:
In this index.php, here is what I found:
<?php get_header(); ?>
<?php get_footer(); ?>
I try to get this website back online.
The webhost is 1and1 IONOS. I can't log into WP, but I have SFTP access.
What webhost is this? Maybe if we know, we can ascertain what the "domain reset" involved and backtrack the fix once we know exactly what those steps entailed.
When these sorts of things happen to me (I manage about 30 WordPress sites), the first thing I do is disable all plugins, and sometimes if I can't actually log into WordPress, I remove the plugins via SFTP or through cPanel.
You're stuck though if you have no access to the host. It'll extremely difficult to solve this without access to the server or control panel for the hosting environment. Do you at least have SFTP access?
This looks like a path to a core theme file.
If you are using child theme, you should be able to update the parent via the theme settings found in your dashboard, without data loss from style sheets, etc. you made in your child theme.
This would work like the backup restore as suggested above, but without the need to get into cPanel or FTP.
The client changed the "target" with his webhost, and the site is back online.
There was also a problem with revolution slider, but anyway, the problem looks solved.

Getting a 500 error when I try to login to the Magento 2 admin panel

Currently trying to login to the Magento backend panel (version 2.2.7) but whenever I try to access the admin panel, I'm getting an error reading:
This page isn’t working www.websitename.com is currently unable to
handle this request.
HTTP ERROR 500
I've looked in the logs and there seems to be the following Apache error in them.
Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a
member function getNext() on null in
/var/www/vhosts/websitename.com/httpdocs/generated/code/Magento/User/Model/User/Interceptor.php:529\nStack
trace:\n#0
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Manager.php(96):
Magento\User\Model\User\Interceptor->getInterfaceLocale()\n#1
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Resolver.php(77):
Magento\Backend\Model\Locale\Manager->getUserInterfaceLocale()\n#2
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/framework/Locale/Resolver.php(65):
Magento\Backend\Model\Locale\Resolver->setLocale(NULL)\n#3
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Resolver.php(60):
Magento\Framework\Locale\Resolver->__construct(Object(Magento\Framework\App\Config\Interceptor),
'general/locale/...', 'store', NULL)\n#4
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Abst...\n'
Can anyone suggest a way to resolve this as I cannot currently get into the backend of My site.
It seems that this was being caused by a vendor extenion called "Moogento Pickpack". Disabling this extension seems to have caused the issue to stop for the moment.
I will get in touch with the extension vendor and try to find out exactly what was causing the problem.
Update:
We have now updated Moogento Pickpack to a new version and upgraded to Magento 2.3.2. The error here is no longer occuring.

Fatal Error on Wordpress: Call to undefined function wp() in wp-blog-header.php

I updated Wordpress to 4.2 this morning, and now I can't access my Wordpress site, gteam.org.
I've searched the Wordpress help forum, but to no avail.
Thoughts or help:
Fatal error: Call to undefined function wp() in /home/team1874/public_html/wp-blog-header.php on line 14
I got the same error, problem was my wp-config.php file was somehow empty, just copied the example wp-config and added my configuration and it worked again.
I met the same problem this morning when trying to install wordpress v4.9.4 . The most likely reason is that the file which declared function wp() is somehow damaged. I solved it reload a new package and installed.
references:
https://wordpress.org/support/topic-tag/fatal-error-call-to-undefined-function-wp/

Categories