My Joomla site shows PHP error: failed to open stream - php

I am working on a Joomla site, and just recently updated PHP to 7.2, but my site started throwing errors. I have also updated Joomla to the latest version, but errors still appear. I'm not good in PHP and don't know how to fix it.
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Color has a deprecated constructor in /public_html/templates/jf_social/features/color.php on line 11
Warning: require_once(/public_html/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in /public_html/templates/jf_social/error.php on line 52
Fatal error: require_once(): Failed opening required '/public_html/libraries/joomla/document/html/renderer/head.php' (include_path='.:/php:/opt/cpanel/ea-php73/root/usr/share/pear') in /public_html/templates/jf_social/error.php on line 52
I think error comes from my Joomla template, I am using this one https://www.joomforest.com/joomla/templates/jf-social
I can't receive support from that template developers, because my subscription is expired, and changing the template will take a lot of time for me,
can you please anyone advise how to fix it?
Thank you very much!

Try to delete the line 52
require_once(/public_html/libraries/joomla/document/html/renderer/head.php)
from the File
/public_html/templates/jf_social/error.php
The renderer/head.php doesnt be supported any more in your joomla version. If there are no more errors, everything is fine, if not your template is not supported any more.
Then go to the file
/public_html/templates/jf_social/features/color.php
and edit the line
function Color($hex){
to
function __construct($hex){

Related

File wp-db.php is deprecated since version 6.1.0! Use wp-includes/class-wpdb.php instead

After an automatic update to my WordPress installation, my website is display this error rather than loading.
Deprecated: File wp-db.php is deprecated since version 6.1.0! Use wp-includes/class-wpdb.php instead. in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/functions.php on line 5595
Warning: require(/home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/class-wp-dependencies.php): failed to open stream: No such file or directory in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/script-loader.php on line 23
Fatal error: require(): Failed opening required '/home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/class-wp-dependencies.php' (include_path='.:/usr/share/pear/') in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/script-loader.php on line 23
Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/functions.php on line 5835
Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/vol13_4/epizy.com/epiz_30367402/htdocs/wp-includes/functions.php on line 5835
There has been a critical error on this website.
Can someone help me understand this error, and provide me a solution or some hints so that I can figure a fix for this.
I also had the same problem currently. So here's how I fixed it.
Go to your Website's App Installer > Wordpress > and find something like this
https://i.stack.imgur.com/xvhm0.png
Click the one in the blue box i drew at the right (Wordpress Manager)
Then, there you can update wordpress
Hope it helped!
i solved it just by updating all plugins, idk why it worked but you can give it a try.

MediaWiki 1.27 warning requiring SpecialUserLogin.php

I've updated my mediawiki from 1.26.2 to 1.27, the installation process finished ok, but when I try to access I received this error:
Warning:
require(/var/app/current/includes/specials/SpecialUserLogin.php):
failed to open stream: No such file or directory in
/var/app/current/includes/AutoLoader.php on line 81 Fatal error:
require(): Failed opening required
'/var/app/current/includes/specials/SpecialUserLogin.php'
(include_path='/var/app/current/vendor/pear/pear_exception:/var/app/current/vendor/pear/console_getopt:/var/app/current/vendor/pear/pear-core-minimal/src:/var/app/current/vendor/pear/mail_mime:/var/app/current/vendor/pear/mail_mime-decode:/var/app/current/vendor/pear/net_socket:/var/app/current/vendor/pear/net_smtp:/var/app/current/vendor/pear/mail:.:/usr/share/pear:/usr/share/php')
in /var/app/current/includes/AutoLoader.php on line 81
I have no idea why is this happening. If I check the files in my server they're there. I'm also having template issues if I choose vector I only get a messed up template, without styling.
I'm using PHP 5.6.
I hope someone can help me.
I just stumbled across this same exact error after upgrading to MW 1.27.
In my case, the SpecialUserlogin.php existed and all of the permissions were right BUT the word login was written in lowercase so the system thought this file didn't exist. So I just renamed the SpecialUserlogin.php to SpecialUserLogin.php and b00m, it worked!
As for your templating issues, check the common.css file. Copy paste everything out of there, so it's empty, if you don't use it. And check that you're calling your style files correctly in your template.

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in ......?

I moved wordpress from one server to other...home page is running fine but when I click to category pages/links it shows these errors
Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/server/public_html/index.php on line 17
Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/server/public_html/index.php on line 17
Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/server/public_html/index.php on line 17
I searched on google and tried accordingly but not solved. I tried wp-codex tech like http://codex.wordpress.org/Changing_The_Site_URL but also failed. I have the wp-blog-header file in my directory but still not working....any help ...thanx in advance
Change php version for 7. My tech.support make this and problem was done
I had a similar issue and the problem was with the PHP version used which in my case by default was PHP 5.2 and it was throwing the 500 status code error.
When upgrading the PHP version to 5.3 the 500 status code was gone but Wordpress returned this error:
Your server is running PHP version 5.3.29 but WordPress 5.4.2 requires at least 5.6.20.
Note to myself (and everyone else with this error): When moving Wordpress websites between different servers make sure you are running the minimum required PHP version.
Also remember:
Note: If you are in a legacy environment where you only have older PHP or MySQL versions, WordPress also works with PHP 5.6.20+ and MySQL 5.0+, but these versions have reached official End Of Life and as such may expose your site to security vulnerabilities.
According to WP docs the recommended PHP is version 7.3.
Try the default theme and see if you still have the error. If so the theme you are using is causing the error - as in my case. The page that had an error was calling a file in "pages" that was not there. When I changed what is to show on that page to something current - the error went

Wordpress crashes when I click add a new plugin after uninstalling a plugin

I recently uninstalled the plugin SEO Facebook Comments
Since then when I click on add new plugin I get this error,
Warning: require_once(D:\Dropbox\htdocs\bcu/wp-admin/includes/class-wp-plugin-install-list-table.php): failed to open stream: No such file or directory in D:\Dropbox\htdocs\bcu\wp-admin\includes\list-table.php on line 42
Fatal error: require_once(): Failed opening required 'D:\Dropbox\htdocs\bcu/wp-admin/includes/class-wp-plugin-install-list-table.php' (include_path='D:\Dropbox\htdocs\bcu\wp-content\plugins\google-analyticator\google-api-php-client\src;.;D:\xampp\php\PEAR') in D:\Dropbox\htdocs\bcu\wp-admin\includes\list-table.php on line 42
I've looked for this error on google and this site although I cannot seem to find anyone else with this error?
Can anyone help me get past this?
I understand it may be a explicit PHP error but I am not too sure on how to fix it,
The error is within another plugin that you have installed.
The second line shows the actual crash
Fatal error: require_once(): Failed opening required 'D:\Dropbox\htdocs\bcu/wp-admin/includes/class-wp-plugin-install-list-table.php' (include_path='D:\Dropbox\htdocs\bcu\wp-content\plugins\google-analyticator\google-api-php-client\src;.;D:\xampp\php\PEAR') in D:\Dropbox\htdocs\bcu\wp-admin\includes\list-table.php on line 42
The plugin is named google analyticator and there is a problem with getting data by the looks of things.
Try de-activating the plugin and seeing if you can then add plugins after.
If that is the problem, try uninstalling the plugin, downloading the latest version and then installing that. If there is still a problem with that plugin, then you will have to report it to the creators and look for an alternative.

joomla function require fatal error

I have a problem which suddenly appeared on my site...
It seems like a problem with php version on my hosting but don't know how to fix it and could use any help...
My site runs on J 1.5.16 (I know it's not up to date...) and yesterday was running just fine.
the error is:
Warning: require(/templates/xxx/gk_suckerfish.php) [function.require]: failed to open stream: No such file or directory
in /home/xxx/public_html/templates/my_template/index.php on line 22
Fatal error: require() [function.require]: Failed opening required '/templates/my_template/gk_suckerfish.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')
in /home/xxx/public_html/templates/my_template/index.php on line 22
Thanks!
I have found a solution!
It seems that somehow the legacy plugin was disabled, I have enabled the plugin system-legacy and the site works fine again!
Now I really have to work on upgrading the website to at least j 2.5
P.S. The real problem was with j 1.5.17. which has serious issues with auto disabling the system-legacy plugin. I have updated the site to 1.5.26. and do not have this problem anymore!
Thank you all,
Best regards!

Categories