Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
PHP 8, MAMP, alternatives for local development
Edit by gaekwad: split from forum.textpattern.com/viewtopic.php?id=51102
FYI the latest release of MAMP now has PHP 8 bundled with it. I’ve updated my local stack.
Last edited by gaekwad (2020-12-18 12:32:48)
Offline
Re: PHP 8, MAMP, alternatives for local development
philwareham wrote #327544:
FYI the latest release of MAMP now has PHP 8 bundled with it.
Yay. Time to update. Thanks for the hint.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: PHP 8, MAMP, alternatives for local development
Getting this on PHP 8.0.0 in MAMP…
Is GD not bundled with PHP anymore in v8?
Offline
Re: PHP 8, MAMP, alternatives for local development
philwareham wrote #327547:
Is GD not bundled with PHP anymore in v8?
It’s not mentioned in the changelog. Just says they’ve added/fixed a few GD features and deprecated others. Might be a MAMP config thing.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: PHP 8, MAMP, alternatives for local development
Good catch, no more thumbnail creation and
Warning "unlink(C:\xampp\tmp\phpF4FB.tmp): No such file or directory"
in C:\xampp\htdocs\textpattern\textpattern\include\txp_image.php at line 814.
adminErrorHandler()
C:\xampp\htdocs\textpattern\textpattern\include\txp_image.php:814 unlink()
C:\xampp\htdocs\textpattern\textpattern\include\txp_image.php:64 image_insert()
C:\xampp\htdocs\textpattern\textpattern\index.php:228 include()
on image upload.
Offline
Re: PHP 8, MAMP, alternatives for local development
Yeah, thumbnail creation (awful as they are) will be affected if GD is missing – that’s expected – but we should code around that error! Nice find.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: PHP 8, MAMP, alternatives for local development
GD extension was simply disabled in php.ini
in my case.
Edit and the warning has always been there, I guess, just silenced. Should be fixed now.
Offline
Re: PHP 8, MAMP, alternatives for local development
etc wrote #327551:
GD extension was simply disabled in
php.ini
in my case.
Sounds like an oversight as gd 2.2.3 is listed in the components (version history). I’ll guess they’ll be adding a 6.3.1 update soon.
Aside: MAMP (Pro) had got so slow on my aging mac – sometimes taking minutes to start servers and occupying the computer every time it awoke from sleep – that I haven’t upgraded this time and have been trialling Laravel Valet. Much leaner, much quicker so far, though I haven’t got as many sites up yet as I had on MAMP. You can switch PHP versions via the command line with a simple command but the biggest difference (I won’t say disadvantage) is that it runs on nginx rather than apache so htaccess has no effect. It works well with the standard PHP driver that comes with Valet. Anyhow txp 4.8.5 appears in initial tests to work fine with PHP8 + GD with MySQL 8.
EDiT: There’s now a lightweight, native mac menu bar app that interacts with Laravel Valet. Helps you manage multiple PHP installations, locate config files and more. And it’s open source: PHP Monitor and installable via homebrew (note Big Sur or newer only though).
TXP Builders – finely-crafted code, design and txp
Offline
Re: PHP 8, MAMP, alternatives for local development
GD is compiled, just ;commented out
. Removing ;
in php.ini
(and restarting) restores it.
Offline
Re: PHP 8, MAMP, alternatives for local development
ok. it installed just fine. I had created the DB which defaults to UTF8 , but the installation process notified that it installed the utf8mb4
$txpcfg['dbcharset'] = 'utf8mb4';
no errors
…. texted postive
Offline
Re: PHP 8, MAMP, alternatives for local development
more diagnostics from my installation:
PHP version: 8.0.0 GD Graphics Library: 2.3.0; Supported formats: GIF, JPEG, PNG, WebP. Server timezone: UTC
…. texted postive
Offline
Re: PHP 8, MAMP, alternatives for local development
I’m currently testing the dev version (latest) locally with XAMPP PC (latest with PHP 8.00).
All works fine except a plugin I use causing this error message:
A problem occurred while loading the plugin: glz_custom_fields (2.0 beta) -> 8192: Required parameter $value follows optional parameter $contents on line 1613
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline