I'Fatal error: Class not found - php

I'm trying to install an older script that is freeware I found on the net. I've had to go through and update it for php 5 updates, however, I am stuck on the next error I've gotten. Hopefully you all can give me some insight as I'm really new at all of this.
I am getting the following error:
Fatal error: Class 'com:wodchatsheet1Driver' not found in /home/wodchat1/wod-chat.com/classes/Database.php on line 49
Here is a link to the Database.php file: http://www.fileswap.com/dl/R44kEh0sWe/
I can't figure it out and I've been trying for a day and a half. The writer of the script's e-mail is bouncing.
Thanks again everyone!

Related

Magento Fatal error: Cannot declare trait Magento\Framework\Interception\Interceptor

I got error after scanning the website with cpanel scanner.
Fatal error: Cannot declare trait Magento\Framework\Interception\Interceptor, because the name is already in use in /home/..../public_html/generated/code/Magento/Framework/App/State/Interceptor.php on line 19.
I have tried all answers related to this but no luck. I have update code from fresh Interceptor file as well but still same error.
Please help me to reolve this.
Link is https://www.advcylinderheads.com/
Many Thanks

PHP Fatal error: Class 'WP_UnitTestCase' not found - phpunit

I know that it already has answer in PHP Fatal error: Class 'WP_UnitTestCase' not found when trying to run test-sample But it doesn't fixed my issue. I am trying to initialize php unit testing with my wordpress plugin using phpunit. I found this tutorial and it was easy to follow. Here's the link
https://www.smashingmagazine.com/2017/12/automated-testing-wordpress-plugins-phpunit/
Everything was working great until the below step.
When I came to this Step in tutorial where the command I tried to run
phpunit tests/test-sample.php
and I get:
PHP Fatal error: Class 'WP_UnitTestCase' not found in PHP Fatal error: Class 'WP_UnitTestCase' not found in /var/www/html/testwordpress/wp-content/plugins/wp-ultimate-csv-importer/tests/test-sample.php on line 11
I don't Know how to solve this issue. I found the same question in Stackoverflow. Here's the Link:
PHP Fatal error: Class 'WP_UnitTestCase' not found when trying to run test-sample
But it was in windows. Somehow he managed to fix it. I checked his solution and it says that issue in MySQL.
But in my case, MySQL works fine and I am in linux with the flavor of Ubuntu. Help me with some solutions to fix this problem in Linux

ß Fatal error: Cannot redeclare get_header

Code Wizards,
I currently have a website that uses wordpress, and recently had some malware problems. I deleted some files without thinking what they did. While trying to restore the site after getting internal sever errors, I soon started to get errors similar to the one below. However I'am stuck on this one, on what it means/wants me to do.
ß Fatal error: Cannot redeclare get_header() (previously declared in /hermes/bosnaweb10a/b2702/ipg.cjhgraphicdesigncom/wp/wp-includes/general-template.php:21) in /hermes/bosnaweb10a/b2702/ipg.cjhgraphicdesigncom/wp/wp-includes/link-template.php on line 43
I would really appreciate any knowledge on this, my php skills are not the best.
Thank you!

Drupal failed after update

I just updated Drupal core from 7.4 to 7.26. After running update.php site stopped working – both public and admin part. When I load it fatal error occurs:
Fatal error: Call to undefined function _system_default_theme_features() in /[drupal_path]/includes/theme.inc on line 1422
and when I reload it another fatal error apperars:
Fatal error: Call to a member function getDirectoryPath() on a non-object in /[drupal_path]/modules/image/image.module on line 83
next reload – first error, one more – second. Also, second error is loading much faster.
And one more thing, after applaying update.php I got one failed, I don't know if this is connected:
media_gallery module
Update #7009
Failed: FieldException: Próba aktualizacji egzemplarza nieistniejącego pola media_gallery_media. w field_update_instance() (linia 557 z /[drupal_path]/modules/field/field.crud.inc).
which is something like:
Failed: FieldException: Attempt to update an instance of a nonexistent field media_gallery_media. in field_update_instance() (line 557 in /[drupal_path]/modules/field/field.crud.inc).
PHP Version 5.5.6
Any tips where the problem is? I was trying disabling some modules from db, but this did't help.
It's difficult to explain the reason and to provide a solution.
My attempt would be to copy the DB and the files on a neutral platform (local machine or so) and experiment with the update.php script.
My suspicion would be that media module needs also update since it's using the old URI function definition (call). Also try to update other modules that are working with files.
The update is quite big since 7.4 to 7.22 (years of improvement). Reading the change log would be helpful but not realistic.
Did you also cleared the cache? (via drush if the web interface not working - /?q=admin/config/development/performance)
Please don't forget to post the solution if you find one for other users with the same issue.

Smarty error, catchable fatal error

I recently made a site for someone with Smarty, everything worked like it should. When I had to edit something today (~ 2 weeks after initial release) i deleted the smarty cache to update all pages, now the pages are not generated anymore, it only gives the following error:
Catchable fatal error: Argument 1 passed to _smarty_template_buffer::append_subtree() must be an instance of _smarty_parsetree, instance of _smarty_text given, called in /home/public_html/classes/Smarty/sysplugins/smarty_internal_templateparser.php on line 2167 and defined in /home/public_html/classes/Smarty/sysplugins/smarty_internal_parsetree.php on line 268
The weird thing is, after some page refreshes it randomly does generate the page without the error. I can't tell why this behaviour is happening.
The PHP version is 5.4.17
Can anyone help me with this problem?

Categories