Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems with symfony's ApcuAdapter #3

Closed
Joduai opened this issue Jul 16, 2024 · 2 comments
Closed

problems with symfony's ApcuAdapter #3

Joduai opened this issue Jul 16, 2024 · 2 comments

Comments

@Joduai
Copy link

Joduai commented Jul 16, 2024

After years of using BBS without updating I had to switch to another domain with all my playground, thus I thought I'd update some things by the way. After setting up everything and resolving some problems with switching to php 8.3 I did get a blank page when visiting the library. I didn't know where to start as enabling error reporting was a pain in the ass. But once I got to see the php errors it turned out that I had problems with symfony's cache adapter.
By default it uses ApcuAdapter which I don't even know how to enable on shared webhosting, even with ssh access.
As symfony offers many cache adapters and I was too lazy to mess with with redis or memcache I just switched to FilesystemAdapter.

I thought I just let you know that it may be a good approach to check first if apcu is available, and use the filesystemadapter as a fallback. Eventually adding some choices in config file.

@mikespub
Copy link
Member

Thanks @Joduai - as far as I heard the php-apcu module is no longer enabled by default for PHP 8.3 in some Linux distributions (for whatever reason), but I'm sure your web hoster should be able to re-activate it for you.

Otherwise as you say the filesystem adapter would be a good fallback. Thanks - I'll keep it in mind for any future updates :-)

mikespub added a commit that referenced this issue Aug 21, 2024
mikespub added a commit that referenced this issue Aug 24, 2024
@mikespub
Copy link
Member

Fixed in release 3.4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants