After trying to install a plugin on my website I'm unable to access the site (front- and backend).
[php7:error] [pid 10111]PHP Fatal error: Class
'Joomla\CMS\Plugin\CMSPlugin' not found in
/home/public/sites/www.modderaandebanden.nl/plugins/system/sessiongc/sessiongc.php
on line 22 [Sat Jul 21 17:34:46.681638 2018] [:error] [pid 11113] PHP
Fatal error: Class 'Joomla\CMS\Plugin\CMSPlugin' not found in
/home/public/sites/www.modderaandebanden.nl/plugins/system/sessiongc/sessiongc.php
on line 23
This seems to be the problem but I'm not sure what I should do. Already tried the solution in "user3063937" problem but this doesn't work for me (change sessiongc folder to sessiongc.bak).
Any suggestions what I should do?
If you have access to phpmyadmin, login and open your database for your site. Navigate to the #__extensions table, search for the plugin and disable there.
Related
I am fairly new to Drupal.
I just got an already existing Drupal project and want to install it.
I copied it to: /var/www/html/myprojects/mydrupalproject
Then I got this error in my error.log from apache2:
[Thu May 03 17:55:41.603774 2018] [php7:notice] [pid 11604] [client
127.0.0.1:41930] PHP Notice: Constant DATE_RFC7231 already defined in /var/www/html/myprojects/mydrupalproject/includes/bootstrap.inc on
line 258, referer: http://127.0.0.1/myprojects/
[Thu May 03 17:55:41.604601 2018] [php7:error] [pid 11604] [client
127.0.0.1:41930] PHP Fatal error: require_once(): Failed opening required
'/var/www/html/myprojects/mydrupalproject/profiles/clusters_public/modules/contrib/apc/drupal_apc_cache.inc'
(include_path='.:/usr/share/php') in
/var/www/html/myprojects/mydrupalproject/includes/bootstrap.inc on
line 2632, referer: http://127.0.0.1/myprojects/
So I tried to use the original .htaccess info in case it was the problem but I still get exactly the same error in the log. Any help?
Failed opening required
'/var/www/html/myprojects/mydrupalproject/profiles/clusters_public/modules/contrib/apc/drupal_apc_cache.inc'
Does this file exist on your webserver and is it accessable? Are the correct file-rights set?
I inherited a CakePHP project and I am having issues getting the project running. I am running into these errors
[Fri Feb 02 00:05:35.920569 2018] [:error] [pid 536] [client 172.18.0.1:38124] PHP Warning: include(/home/tablereserv/web/tablereserv.com/public_html/lib/Cake/Error/ErrorHandler.php): failed to open stream: No such file or directory in /src/lib/Cake/Core/App.php on line 547
[Fri Feb 02 00:05:35.920638 2018] [:error] [pid 536] [client 172.18.0.1:38124] PHP Warning: include(): Failed opening '/home/tablereserv/web/tablereserv.com/public_html/lib/Cake/Error/ErrorHandler.php' for inclusion (include_path='.:/usr/share/php') in /src/lib/Cake/Core/App.php on line 547
[Fri Feb 02 00:05:35.920658 2018] [:error] [pid 536] [client 172.18.0.1:38124] PHP Warning: set_error_handler() expects the argument (ErrorHandler::handleError) to be a valid callback in /src/lib/Cake/Core/Configure.php on line 443
The file path that is trying to be included, /home/tablereserv/web/tablereserv.com/public_html/lib/Cake/Error/ErrorHandler.php does exist and the actual path to that file is /src/lib/Cake/Error/ErrorHandler.php
I have found some similar questions like the ones below, but none of the answers were particularly helpful
CakePHP ErrorHandler error
PHP Warning: include(/var/www/html/....../lib/Cake/Error/ErrorHandler.php): failed to open stream Error
When I print out the CAKE_CORE_INCLUDE_PATH variable, I get the correct path but something is obviously going wrong somewhere and I can’t seem to find it.
I also think I should mention that I set up a docker container to run the project in, I’m not sure if that could have an impact on it.
Any help would be greatly appreciated.
In my case, I found out that file mappings are stored in a file with a name similar to appname_cake_core_file_map. Once I deleted the cache file and ran the request again, a new mapping was generated with the correct path.
Woke up this morning not being able to access my admin in opencart. Login would not allow. Edited something and now I have a 500 error on admin.
[Sun Nov 27 08:26:58.521365 2016] [cgi:error] [pid 11194] [client
86.161.65.106:51914] AH01215: PHP Fatal error: Call to a member function isLogged() on null in
/home/xxxxx/public_html/vqmod/vqcache/vq2-catalog_model_catalog_product.php
on line 468: /usr/local/cpanel/cgi-sys/ea-php56
Tried deleting entire contents of vqcache. Didn't work. Checked config files for public and admin both seem to be correct.
HELP!
I have tried everything, but can't seem to simply get it to work.
I was using these scripts happily on a bluehost hosting, till I decided to move to digital ocean.
https://github.com/google/google-api-php-client/tree/1.1.4
https://github.com/asimlqt/php-google-spreadsheet-client/tree/2.3.5
I built a custom function to read spreadsheets and use it as a database for a client who needed the ability to edit the website texts himself.
I took a Digital Ocean Ubuntu 14.04 server, installed Sentora Panel on it, normal PHP code works, but specifically this Google API script is throwing this error.
[Fri Jul 29 05:21:24.569294 2016] [:error] [pid 2429] [client 14.139.122.50:53019] PHP Warning: file_exists(): open_basedir restriction in effect. File(/tmp/Google_Client/5f/5fa67135f8773ebac807e4dda0aa1084) is not within the allowed path(s): (/var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in:/var/sentora/temp/) in /var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in/process/google/google-api-php/src/Google/Cache/File.php on line 52
[Fri Jul 29 05:21:25.985927 2016] [:error] [pid 2429] [client 14.139.122.50:53019] PHP Warning: is_dir(): open_basedir restriction in effect. File(/tmp/Google_Client/5f) is not within the allowed path(s): (/var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in:/var/sentora/temp/) in /var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in/process/google/google-api-php/src/Google/Cache/File.php on line 148
[Fri Jul 29 05:21:25.986025 2016] [:error] [pid 2429] [client 14.139.122.50:53019] PHP Warning: mkdir(): open_basedir restriction in effect. File(/tmp/Google_Client/5f) is not within the allowed path(s): (/var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in:/var/sentora/temp/) in /var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in/process/google/google-api-php/src/Google/Cache/File.php on line 149
[Fri Jul 29 05:21:25.986373 2016] [:error] [pid 2429] [client 14.139.122.50:53019] PHP Fatal error: Uncaught exception 'Google_Cache_Exception' with message 'Could not create storage directory: /tmp/Google_Client/5f' in /var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in/process/google/google-api-php/src/Google/Cache/File.php:154\nStack trace:\n#0 /var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in/process/google/google-api-php/src/Google/Cache/File.php(139): Google_Cache_File->getCacheDir('ff3dffdeef0acdf...', true)\n#1 /var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in/process/google/google-api-php/src/Google/Cache/File.php(134): Google_Cache_File->getCacheFile('ff3dffdeef0acdf...', true)\n#2 /var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in/process/google/google-api-php/src/Google/Cache/File.php(95): Google_Cache_File->getWriteableCacheFile('ff3dffdeef0acdf...')\n#3 /var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in/process/google/google-api-php/src/Google/Auth/OAuth2.php(315): Google_Cache_File->set('ff3dffdeef0acdf...', '{"access_token"...')\n#4 /var/sentora/hostda in /var/sentora/hostdata/zadmin/public_html/test2_ipleaders_in/process/google/google-api-php/src/Google/Cache/File.php on line 154
This is the error log I am receiving. I have checked for file permissions, and have kept it 777 in many places and especially in the tmp folder as mentioned in the error log. I desperately seek help on this, any insight is helpful.
Just as the error message says, it appears that php's open_basedir setting is preventing the script from reading the files from /tmp path. You probably want to check with your hosting provider if you are able to change that setting, or alternatively, change the temporary path in your application/library settings to the directory you have access to.
I solved this one beautifully!
So as I was using Sentora, I searched for 'open_basedir Sentora' on Google, and found this: http://forums.sentora.org/showthread.php?tid=1674
I made a custom vhost entry:
Admin > Module Admin (on Sentora CP).
Apache Config (it's the very first option).
Scrolled Down to the end of the page and under the Override a Virtual
Host Setting I choose the website I wanted.
Now on the text area input: Custom Entry I entered the following:
php_admin_value open_basedir none
And now the Google Script is working fine! Thanks to #Unix-One's answer I was on the right track.
I just installed the peroxide HAML/SASS engine for Drupal 7.x and its oxygen theme, activated and Set as default, then gave chmod -R 777 sites/all just to be sure I don't get any rwx errors.
I have the sass (ruby gem version) installed(in sass: /usr/local/bin/sass /home/danthe/.rvm/gems/ruby-2.2.1/bin/sass)
I see a blank page now, can't even login to admin panel, everything is blank(`cause of the PHP Fatal Error).
My log says
[Sun Jul 19 21:14:19.607260 2015] [:error] [pid 2507] [client 127.0.0.1:42531] PHP Fatal error: Class 'SassParser' not found in /home/danthe/public_html/AtmTopTech/sites/all/themes/engines/peroxide/peroxide.engine on line 186
sh: 1: sass: not found
[Sun Jul 19 21:14:19.656532 2015] [:error] [pid 1424] [client 127.0.0.1:42532] PHP Fatal error: Class 'SassParser' not found in /home/danthe/public_html/AtmTopTech/sites/all/themes/engines/peroxide/peroxide.engine on line 186
[Sun Jul 19 21:14:19.740176 2015] [:error] [pid 2506] [client 127.0.0.1:42533] PHP Fatal error: Class 'SassParser' not found in /home/danthe/public_html/AtmTopTech/sites/all/themes/engines/peroxide/peroxide.engine on line 186
[Sun Jul 19 21:14:19.815207 2015] [:error] [pid 1427] [client 127.0.0.1:42534] PHP Fatal error: Class 'SassParser' not found in /home/danthe/public_html/AtmTopTech/sites/all/themes/engines/peroxide/peroxide.engine on line 186
This is in my ../peroxine.engine on line 186
// Setup the Sass Parser
$options = _peroxide_get_sass_options($theme);
$parser = new SassParser($options);
peroxide does not rely on entirely Ruby version of SASS compiler, it's only capable of compiling with Ruby version of compiler. You have to clone the repository with the engine recursively, as it is specified in Installation guide.
Peroxide uses phamlp as SASS compiler, it is specified as Git Sub-module for the Peroxide repository.
cd sites/all/themes (or whatever your theme directory is)
mkdir engines
cd engines
git clone --recursive git://github.com/codeincarnate/peroxide.git
The error that you're having is not caused by permissions, it's a Fatal Error in php in peroxide.engine#L186
The PHP script fails to create a new instance of SassParser object, which is defined in /phamlp/blob/master/sass/SassParser.php
Please make sure that the folder is present and contains the phamlp source code. /home/danthe/public_html/AtmTopTech/sites/all/themes/engines/peroxide/phamlp