Problem with PHP 5.6 with wampserver 3.3.8
Posted by: MayaManaya (---.subs.proxad.net)
Date: September 15, 2025 01:12PM

Hello,

I'm trying to run wamp 3.3.8 with PHP 5.6 and MySQL 8.0 and it's not working. I'm getting the following error:

( ! ) Fatal error: Call to undefined function str_contains() in C:\wamp64\scripts\wampserver.lib.php on line 1498
Call Stack
# Time Memory Function Location
1 0.0014 392288 {main}( ) ...\index.php:0
2 0.3795 1246352 GetPhpVersionsUsage( ) ...\index.php:181
3 0.3796 1247680 check_virtualhost( ) ...\wampserver.lib.php:1700
4 0.3833 1299400 GetAliasVersions( ) ...\wampserver.lib.php:853

I'm not sure what to do in order to fix that. Could you please let me konw what can be done? I'm trying to update an old website from Joomla 2.5 to newer joomla versions, hence the need to use php 5.6 as a start point.

i'm using the follwoing:
1. Windows 11 64 bit
2. wampserver 3.3.8 64 bit
3. Apache 2.4.62.1
4. PHP 5.6.40
5.MySQL 8.0.43
6. Green wamp icon
8. I have access to the localhost with the error message I shared above
9. Yes, I have access to php myadmin but it doesn't allow me to connect and is showing me the following message:

mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client
10. I'm using mcafee as an antivirus
11. Path: c/ wamp64

Options: ReplyQuote
Re: Problem with PHP 5.6 with wampserver 3.3.8
Posted by: Otomatic (Moderator)
Date: September 15, 2025 02:33PM

Hi,

Use PHP 5.6.40 in FCGI mode and leave PHP 8.x.y in Apache module mode.

This error will be corrected with Wampserver 3.4.0.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Problem with PHP 5.6 with wampserver 3.3.8
Posted by: MayaManaya (---.subs.proxad.net)
Date: September 15, 2025 03:00PM

Hello,

Thank you for your answer. I'm still a beginner and not sure how to do that. Could you let me know how to make that change?

Options: ReplyQuote
Re: Problem with PHP 5.6 with wampserver 3.3.8
Posted by: Otomatic (Moderator)
Date: September 15, 2025 03:10PM

Hi,

- Localhost
- Add a VirtualHost
- Modifiy VirtualHost form
- Choose your VirtualHost with Joomla
- Modify VirtualHost
- Check : Il youy want to use PHP in FCGI mode
- Choose PHP 5.6.40
- Start the creation/modification of a VirtualHost

Then choose PHP 8.x.y as an Apache module.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.