My Joomla powered website was hacked several days ago, after it was cleaned and restored, a problem emerged.
On back-end, when I click Components -> k2 and an fatal error appears:
Fatal error: Class 'K2HelperHTML' not found in ~/administrator/components/com_k2/k2.php on line 77
I compare this k2.php file with a working site's k2.php but no differenced was found.
Then I inpsected the file where class K2HelperHTML was defined, which I believe is ~\administrator\components\com_k2\helpers\html.php, it doesn't show any differenct from a working site's corresponding file.
Now I'm stuck here, what should I do next to repair this.
Have you tried reinstalling the most recent version? That would be a good place to start. Simply use the Joomla installer to install the latest version.
I just encountered same problem with fresh installed component and solution for me was pretty easy. All I had to do, was clear application cache.
To do it go to System -> Clear Cache and then click Delete all.
Related
I have started facing an issue with locally hosted Drupal 9 (Xampp, Windows 10). The issue started when I was trying to create events in drupal 9 and I was redirected to Install.PHP page. However, upon checking I was redirected to Update.php and the error seems to be as mentioned below.
Install.PHP page message:
Drupal 9.2.2 Drupal already installed To start over, you must empty
your existing database and copy default.settings.php over
settings.php. To upgrade an existing installation, proceed to the
update script. View your existing site.
Update.php Page Message:
MISSING UPDATES FOR: MEDIA The installed version of the Media module
is too old to update. Update to a version prior to 9.0.0 first
(missing updates: media_post_update_collection_route,
media_post_update_storage_handler,
media_post_update_enable_standalone_url,
media_post_update_add_status_extra_filter).
I'm well aware of the fact that Media is a core module and I havent tried upgrading it or my site. My site has always been a D9 installation and there were no migrations etc. I would really appreciate expert help on this issue.
Running this in a function in my .theme file did the trick for me:
\Drupal::service('update.post_update_registry')
->registerInvokedUpdates(['media_post_update_collection_route', 'media_post_update_storage_handler', 'media_post_update_enable_standalone_url', 'media_post_update_add_status_extra_filter', 'setting functions as applied according_to_the_error_message']);
I personally used hook_theme() (Make sure to clear your cache for it to run and also remove this code once the issue is fixed.)
After installing a Joomla plugin called “Digi Template Switch” on a live server everything seemed fine until my session expired and I tried accessing the dashboard with my credentials, only this time I got a php error -
Fatal error: Call to undefined method JUserHelper::verifyPassword() in /home/mysite/public_html/plugins/authentication/joomla/joomla.php on line 56
Read up on some people who have had this issue in the past and they suggested replacing the adminstrator, libraries and include folders with that from a fresh download of same Joomla version but I have installed quite a few plugins already which would make my replacing the administrator folder a little tricky.
Would really appreciate an assistance as the Joomla installation is on a live server at the moment without access to the backend.
You can download joomla version 2.5.28 and replace that file con your server, the plugins you have installed will not be touched.
I'm not a coder, so please let me know if I'm in the wrong place. I'm an office manager who has managed to recover our Joomla website from being hacked. However I can't get into the backend of the website and our web host is not able to help. I can log in but then a blank page appears. This is the message I got from the our web host.
20160421T120205: creativelc.com.au/administrator/index.php
PHP Fatal error: Class 'JTree' not found in /hermes/bosnaweb15a/b931/ipg.creativelearning/administrator/modules/mod_menu/menu.php on line 18
I have tried to resolve it by restoring from a fresh installation. However, it is still loading the blank page. Thus, I suggest you please contact your application vendor on this and seek their assistance further.
Thanks
I am not sure how you reinstalled Joomla, but I recommend you to do it this way:
Back-up everything needed
Install Joomla on a subdomain/different domain/localhost or similar, as testing purpose.
Upload a copy of your database and connect it to the subdomain/domain/localhost.
If this solution doesn't work, then your database is affected. If you get different error messages, that may be because of the missing plug-ins, you should install them from scratch.
I have the following error periodically show up in Joomla 3.0/3.1/3.2 articles (front-end):
warning
JLIB_FILESYSTEM_ERROR_PATH_IS_NOT_A_FOLDER_FOLDER
JLIB_FILESYSTEM_ERROR_PATH_IS_NOT_A_FOLDER_FILES
It first shows up right after install, and then disappears upon refreshing, but reappears at random times later. Does anyone know about this?
BTW, I know very little about MySQL and PHP other than setting up a database and coding a template, so if you could be descriptive, that would be awesome :)
EDIT: Maybe it's because I am installing a pre-configured package with Akeeba? But I'm pretty sure I have got this message even when I installed the actual Joomla package.
I use joomla 3.1.5, php 5.4.20
When my php was 5.3.x everything was fine but after upgrading php to 5.4.20 i cannot create new article categories!
I get Internal Server Error:
The server encountered an internal error or misconfiguration and was unable to complete your request.
This is not an issue with .htaccess (don't have any) or permissions(checked it a lot of times).
Strange thing is that when i enable debug system in global configuration the problem is solved!!! When disabling debug system problem comes back.
This only happens in joomla 3.x installations. I use the same server with joomla 2.5.x and it works fine.
Any suggestions? thanks in advance
Have you checked the Joomla forum ? PHP 5.4 is not used much and the Joomla 3.1.5 might have some modules that are not compatible with the PHP 5.4.
Just wanted to share the fix to this problem. EAccelerator was causing the issue after disabling it everything works fine
I don't think the main problem is with the PHP version.
To be able to Create New Categories do this :
In your joomla "Control Panel" page, this is usually the first page when you log in, scroll down and under CONFIGURATION click "Global."
In the new page for "Global" that open opens, look for "Default Editor", if you have not changed it before it's value should be "Editor - TinyMCE". Change that to "Editor-None." --Note that for now you will not be able to use the default WYSIWYG.
Click "Save & Close".
Now go back to the page for creating new categories, refresh it and create your categories.
To have access again to the default WYSIWYG, after you have finished creating your categories, go back to "Global " and change the editor back to TinyMCE.
Good Coding.