Skip to content

PHP 8.0 - 8.4 and phpBB 3.3.19 Compatibility Fixes - #80

Open
phpBB-Italia wants to merge 7 commits into
phpbb-seo:masterfrom
phpBB-Italia:master
Open

phpBB-Italia wants to merge 7 commits into
phpbb-seo:masterfrom
phpBB-Italia:master

Conversation

@phpBB-Italia

Copy link
Copy Markdown

This pull request provides a fully patched, modernized, and stable build of the extension (v2.0.3 Framework), specifically optimized to run on modern environments under phpBB 3.3.19 and PHP 8.0 up to PHP 8.4 without triggering white pages, strict types errors, or bootstrap crashes.

The following critical issues and architectural refuelling have been addressed and fixed:

  1. Metadata & ACP Validation Fixes:
  • Updated composer.json by adding the mandatory "authors" block and configuring the proper PSR-4 "autoload" namespaces to prevent phpBB Extension Manager from rejecting the package as invalid.
  1. Strict Type & TypeError Resolutions (PHP 8.x Type Hinting Mismatches):
  • Fixed multiple mismatched return type definitions inside acp/usu.php (such as set_phpbb_seo_links() and write_cache()) where arrays or booleans were being returned instead of strict strings.
  • Fixed core/core.php read_config() method which was missing a final return true; statement, causing a fatal error under PHP 8.
  • Enforced type-casting via strict integer formatting (int) for database configuration limits (topics_per_page, posts_per_page, forum_id, and topic_id) across listener.php and sync modules to comply with modern PHP 8 strict function signatures.
  1. Trait Syntactical Corrections:
  • Resolved a critical syntax parse error inside core/traits/rewriter.php (around line 342) where an escaped parameter default ('/') was breaking the compiler PHP parsing mechanism.
  • Patched pagination float-to-int assignment constraint regarding the mathematical floor() behavior inside the viewtopic context of listener.php.
  1. Server Config Generative Improvements:
  • Optimized the automated .htaccess rules generator to compile an output fully aligned with phpBB 3.3 standards, cleaning up Front Controller recursion anomalies, adding sitemap routing overrides, and structuring isolated directory paths for parent categories.

This package has been thoroughly tested on production and staging environments, ensuring fluid URL rewriting, solid Zero Dupe redirects, and perfect synchronization workflows under PHP 8.4.27.

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

Successfully merging this pull request may close these issues.

1 participant