SessionHandlerInterface not found when deploy Drupal 10 - drupal

I've moved a website powered by Drupal 10 from local server (where everything worked fine) to remote, configured PHP 8.2 at the latter, but when I run the website in the browser I get the error
Interface "SessionHandlerInterface" not found in .../core/lib/Drupal/Core/Session/SessionHandler.php on line 15
What else should I do to resolve the issue?

Ok, I've just found out that I should install php82-session. Now it's working

Related

WSL2 - Magento 2.4-Nginx - Css and Js Issue

I need suggestion with my magento setup.
I have windows 10 in my system. I am using wsl2 with nginx web server. I am trying to install magento2.4 but facing issue for loading css and js.
When hit js in new tab getting below error:
Requested path frontend/Magento/luma/en_TT/requirejs/require.js is wrong.
#1 Magento\Framework\App\Bootstrap->run() called at [pub/static.php:13]
I have tried every solution from google but none help.
Plz help me here :(
You need to run below command,
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy en_TT

Wordpress Database Connection Error - PHP7 using MAMP

I have a localhost development environment using MAMP Pro, with a Wordpress website working successfully using PHP 5.6.8. Changing the host to PHP 7.0.13 (and changing nothing else) results in the error:
Warning: mysqli_real_connect(): (HY000/2002): No such file or
directory in [edited path]/wp-includes/wp-db.php on line 1538
Error establishing a database connection
This either means that the username and password information in your
wp-config.php file is incorrect or we can’t contact the database
server at localhost:3306. This could mean your host’s database server
is down.
Screenshot of Complete Error
wp-config.php definitely has correct username, password, hostname and the database is running. Solutions to similar issues/warnings suggest the MySQL socket path in php.ini file could be wrong, but I have compared that file across the two php versions and they are the same.
I am using the latest versions of MAMP Pro (4.1) and Wordpress (4.7.4), as well as OS X (10.12.4). Also, the website works fine again when changing the host back to PHP 5.6.8.
No idea what else to do/check. Any thoughts are much appreciated.
Wordpress 4.6 later version is not supported in Php 7.0 So please Reinstall Php 5.6 and check .so working
After updating to PHP7 you need to check the path to the mysql.sock.
Open the php.ini file and correct the path
mysql.default_socket = /Applications/MAMP/bin/IDONTKNOW...../mysql.sock

Error during artifact deployment. See server log for details.(ubuntu16.04+intellij2016.3.4+tomcat8.5.13)

I delveloped a project in springmvc and maven by intellij.
When the project is running in windows 10 and tomcat8.5.13,it works well.But when it runs in ubuntu16.04, there are some erros:
Error during artifact deployment. See server log for details.
I am sure that my code is correct because I can run it in windows10 or mac os.And I used the same version of tomcat in these os——v8.5.13.
I have read many answers in the sof,but no one can solve my problem.
And the most strange thing is:though there are some errors when I run the tomcat in my intellij, I can find my web in http://localhost:8080 correctly.
had the same problem on MacOS X and the log files are clear without any error. After changing tomcat version back to 8.5.12 all is ok. Seems like they broke something in 8.5.13 and 9.0.0.M19 versions.
Similar problem: link
Older versions of tomcat can be downloaded from here

Can't install Acquia Drupal Commons locally

Working on a MacbookPro OS 10.6.6 , using MAMP Pro 1.9.4.
I'm attempting to install Acquia's Drupal Commons locally. The installation progress bar goes all the way, I can check in phpMyadmin that the database has been populated, but before the site configuration screen , I get a 500 Server Error!
Standard Drupal 6 or 7 install without any problem & I was able to install Drupal Commons on my web server. So it seems that some form of conflicts happens between my server configuration ( Mamp Pro ) and Drupal Commons.
Thanks in advance for any suggestions!
Did you check that your sites/default/default.settings.php file was copied to settings.php and not just renamed?
I remember having problems setting up Drupal when I just renamed it, both files need to be there.
I solved the issue by raising the PHP limit in Mamp to 96M.
File > Edit Template > PHP > PHP Version
//Search for 'memory_limit' & edit the value
memory_limit = '96M';
then restart the server.
After dong this Drupal Commons should install without any problems.

Problem with WAMP server and Drupal on eeePC

I just installed WAMP on my new eeePC and I am trying to install Drupal, I unzipped the drupal file in the www directory and went to localhost/drupal-x.xx
I get the following error for a couple hundred lines :
Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal-6.15\includes\file.inc on line 902
then the regular drupal install interface appears at the bottom of the page, I tryed to go through with the installation but the problem remains, I looked through google and the drupal web site and I can find no answer (I found similar problem (in french), but no answer).
I have installed wamp and drupal on other computers (win XP and Mac OS) and it seems to work all right so it makes me think it might be related to the eeePC or windows 7 (running on windows 7 starter edition). Any idea ?
Thx
Ok it just seems that Drupal does not support PHP 5.3, which was installed in the latest version of WAMP, which I did not have on my other computers. I have to go back to 5.2, which you can do by installing a php 5.2.x addon from the wampserver website
If phpmyadmin doesn't work after installing your add, you will have to modify the php.ini file with the right path
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:/wamp/bin/php/php5.x.x/ext/"
replace php5.x.x by the version of php you downloaded and installed
My bad :)
Please try with PHP 5.6 or PHP7 installtion,otherwise it will put depcrated notice on header area.

Resources