joomla function require fatal error - php

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!

Related

My Joomla site shows PHP error: failed to open stream

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){

WordPress Error showing in compat.php

I am really new to wordpress environment.
I have the site on https://www.thewebdebug.com which is showing an error like
PHP Error Message
Fatal error: require() [function.require]: Failed opening required '/home/a9739613/public_html/wp-includes/random_compat/random.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a9739613/public_html/wp-includes/compat.php on line 338
can anybody tell me what is going on and how should i fix it.? I had tried on the web but couldnot find a solution that fits my need. I have recently upgraded my wordpress and some plugins failed to do.

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 1.6 errors galore on webpage

I recently picked up a project from a client to improve his website. It's joomla website unfortunately and I don't know anything about Joomla, only have wordpress experience.
Now I finally got the site to work on localhost, the problem is that it's just error blocks everywhere, and I really hope some of the smart people on this site can help me.
And it's joomla 1.6 as far as I can see, the way I see that is in the readme.txt file it mentiones 1.6 repeatedly.
I get this error:
Warning: include() [function.include]: Filename cannot be empty in C:\wamp\www\fikile\templates\yoo_quantum\html\mod_custom\default.php on line 12
on this code:
include($warp['path']->path('layouts:'.preg_replace('/'.preg_quote($base, '/').'/', '', __FILE__, 1)));
and then the following error:
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\fikile\templates\yoo_quantum\html\mod_search\default.php on line 12
on these two lines of code:
include($warp['path']->path('layouts:'.preg_replace('/'.preg_quote($base, '/').'/', '', __FILE__, 1)));
and
include($warp['path']->path('layouts:'.preg_replace('/'.preg_quote($base, '/').'/', '', __FILE__, 1)));
Please help, it seems the all the errors are related to the same kind of problem, but I don't have any clue what that problem is.
Thanks in advance for all your help.
Setting Site -> Global Configuration -> Server -> Error Reporting to "System Default" might help, if it's not set that way already.

Categories