Wordpress - fatal error wp-widget.php - php

I have error on my website: lukas-tv.pl
I've reinstalled wordpress and still the same:
Warning: require(/home/keramxd/domains/lukas-tv.pl/public_html/wp-includes/class-wp-widget.php): failed to open stream: Success in /home/keramxd/domains/lukas-tv.pl/public_html/wp-settings.php on line 217
Fatal error: require(): Failed opening required '/home/keramxd/domains/lukas-tv.pl/public_html/wp-includes/class-wp-widget.php' (include_path='.:/usr/local/php71/lib/php/') in /home/keramxd/domains/lukas-tv.pl/public_html/wp-settings.php on line 217

There are many possibilities :
You update your wordpress site and one of your plugins is calling a deprecated file. If so, try to disable all of your plugins. (Obviously here, this file is not deprecated, but it is a general thing to do).
The site directories don't have correct permissions. If so, do a chmod -Rf 755 on the site root.
Your installation is corrupted and you should reinstall Wordpress.

Related

Warning: require(__DIR__/cherry-framework/setup.php

Can't install wordpress the error after entering domain. the hosting PHP version is 5
Warning: require(DIR/cherry-framework/setup.php) [function.require]: failed to open stream: No such file or directory in /home/content/a/s/c/asclaw/html/wp-content/plugins/power-builder/tm-builder-core.php on line 42
Fatal error: require() [function.require]: Failed opening required 'DIR/cherry-framework/setup.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/a/s/c/asclaw/html/wp-content/plugins/power-builder/tm-builder-core.php on line 42
download CherryFramework. Extract cherry-plugin.zip files to wp-content/plugins/cherry-plugin directory replacing existing files. This should fix the issue.
I had the same issue. I discovered the site was running on PHP 5.3 even though their cpanel showed the server was running 5.4.
I added the following to the .htaccess and it got the site working:
AddHandler application/x-httpd-php54 .php
Check you PHP version, I'm sure that's the issue.

Error after compilation in Magento

I am getting an error after compilation. I am using Magento 1.9.0.1.
My website was running too slow so I have complied but after compilation my website (frontend as well as backend) has down and showing the same error. Please help me to rectify the same.
Error: Fatal error: require_once(): Failed opening required '/home/ecomventures/public_html/demo/includes/src/../lib/vendor/autoload.php' (include_path='/home/ecomventures/public_html/demo/includes/src:.:/usr/lib/php:/usr/local/lib/php') in /home/ecomventures/public_html/demo/includes/src/Fontis_Australia_Model_Observer.php on line 23
Navigate to includes/config.php in your root directory where your Magento files are located.
Open that up and change:
define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
to
#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
That will allow you to see your site again without the fatal errors.

Just moved my CakePHP. Autoload.php error. No such directory found

Warning: require(/home5/golfbase/public_html/core/libs/current/Cake/Cache.php) [function.require]: failed to open stream: No such file or directory in /var/www/web/web657276/golfbasen.dk/core/libs/current/AutoLoad.php on line 48
Fatal error: require() [function.require]: Failed opening required '/home5/golfbase/public_html/core/libs/current/Cake/Cache.php' (include_path='.:/usr/share/pear:/var/www/web/web657276/golfbasen.dk:/var/www/web/web657276/golfbasen.dk/app/') in /var/www/web/web657276/golfbasen.dk/core/libs/current/AutoLoad.php on line 48
That is the message that I'm receiving i just moved from another host... I think its the root dir. But i'm not really sure.... I hope you can help guys...
Did you copy the tmp files across from your old host? Try deleting them.
If you're still having issues then try the accepted solution here:
Odd issue with cakephp document root
in php.ini file, add the project folder path in include_path directive.

How to add Smarty in wamp php.ini file

I need to add libs for smarty in php.ini, but do I find which file I have to add, where can I find the sub directory being included in php directory.....
I have the following error when trying to access the pages on my site in wamp:
Warning: require(..../public_html/libs/Smarty.class.php): failed to open stream: No such file or directory in
Fatal error: require(): Failed opening required '...../public_html/libs/Smarty.class.php' (include_path='PEAR/') in
Apology if the question is too stupid..:)

Fix compilation magento errors

I want to enable magento compilation, but when I enable it I see follow errors:
Warning: include_once(.../includes/src/Mage_Core_functions.php) [function.include-once]: failed to open stream: No such file or directory in .../app/Mage.php on line 36
Warning: include_once() [function.include]: Failed opening '.../includes/src/Mage_Core_functions.php' for inclusion (include_path='/.../includes/src:.:/usr/share/php') in .../app/Mage.php on line 36
Warning: include_once(.../includes/src/Varien_Autoload.php) [function.include-once]: failed to open stream: No such file or directory in /.../app/Mage.php on line 37
Warning: include_once() [function.include]: Failed opening '.../includes/src/Varien_Autoload.php' for inclusion (include_path='.../includes/src:.:/usr/share/php') in .../app/Mage.php on line 37
Fatal error: Class 'Varien_Autoload' not found in .../app/Mage.php on line 53
Can anybody help me to fix them? I want compilation to be enabled. In Internet every answer on this question was disable the compilation. I want the compilation to be enabled. Just for information my magento version is 1.7.0.0
did you change access rights on /includes directory? Because, after the compilation, compiled source codes reside in /includes/src directory!
$ chmod o+w includes includes/config.php
# if its not work, do following
$ chmod -R 777 includes/
Modify :
To close the compilation mode, open the file includes/config.php and comment out the following line :
define(’COMPILER_INCLUDE_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’src’);
#define(’COMPILER_COLLECT_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’stat’);
to
#define(’COMPILER_INCLUDE_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’src’);
#define(’COMPILER_COLLECT_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’stat’);
If you want to enable compilation mode then go to admin section press the "RUN COMPILATION" button.
Summary :
I guess, you had forgetten to set directory permission before the compilation process therefore the compilation process has not been create compiled source code directory!
Remarks :
The compilation process might be headache. On each code modifications, you should compile again or contrary, you should disable to compile before the modification or extension installation. Some extensions are trouble with that. That is why so many people do not want to use in this option. Also, in v2.0 of Magento, the compilation process dropped, not available anymore!
Deactivate the compiler like Oğuz Çelikdemir recommended and then click on "Start compilation process" (or something like that. It's "Kompilierungsvorgang starten" in German). This initiates the compilation process rather then just "activating" it. This worked for me.

Categories