Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-12-16 08:58:28

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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

#2 2020-12-16 09:06:44

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

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

#3 2020-12-16 09:29:30

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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

#4 2020-12-16 09:33:15

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

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

#5 2020-12-16 09:39:57

etc
Developer
Registered: 2010-11-11
Posts: 5,194
Website GitHub

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

#6 2020-12-16 09:49:20

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

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

#7 2020-12-16 10:15:09

etc
Developer
Registered: 2010-11-11
Posts: 5,194
Website GitHub

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

#8 2020-12-16 11:22:19

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,729
Website

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

#9 2020-12-16 11:30:27

etc
Developer
Registered: 2010-11-11
Posts: 5,194
Website GitHub

Re: PHP 8, MAMP, alternatives for local development

GD is compiled, just ;commented out. Removing ; in php.ini (and restarting) restores it.

Offline

#10 2020-12-16 18:22:42

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,092
Website Mastodon

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

#11 2020-12-16 18:25:35

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,092
Website Mastodon

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

#12 2020-12-16 21:17:11

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

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

Board footer

Powered by FluxBB