Hi, it's me again. Hope everything goes well.
Problem Summary
FoF Upload appears to be perfectly installed but cannot be activated in the Admin panel, and when manually enabled via database, it shows "File type not allowed" errors.
_Technical Environment
Flarum Version: 1.8.4
FoF Upload Version: 1.8.4
Hosting: Hostinger Shared Hosting
PHP: 8.1+
Structure: Mixed public_html with assets in root_
What WORKS ✅
# Images are physically stored and accessible
ls -la assets/files/
# Output: Directories with dated images
# URLs are accessible via direct links
curl -I https://fictograma.com/assets/files/2025-10-20/1760963059-432467-ai-generated-8891427-960-720.jpg
# HTTP/2 200 - Image loads perfectly
# External image links work in Flarum Discussion Cards

What DOESN'T WORK ❌
❌ FoF Upload cannot be activated in Admin panel
❌ When manually enabled via DB, shows "No se permite subir archivos de este tipo"
❌ FoF User Bio profile images don't display
❌ Any feature depending on FoF Upload fails
Complete Diagnostic Results
- Installation Verification
composer show fof/upload
Output: Perfect installation, all dependencies met, version 1.8.4
- File Structure Verification
ls vendor/fof/upload/src/ | head -10
Output:
Access
Adapters
Api
Commands
Console
Contracts
Data
Downloader
Download.php
Events
- Autoloader Status
ls -la vendor/autoload.php
Output: -rw-r--r-- 1 user group 748 Oct 28 23:51 vendor/autoload.php
- Database Configuration
-- Manual activation attempted
UPDATE fg_settings SET value = '["...","fof-upload"]' WHERE `key` = 'extensions_enabled';
The Core Problem
Despite perfect technical installation, FoF Upload has fundamental compatibility issues with this specific server configuration. The extension loads but cannot initialize properly.
Attempted Solutions (All Failed)
✅ Complete reinstall (composer remove fof/upload && composer require fof/upload)
✅ Database cleanup (removed all fof-upload.% settings)
✅ Cache clearing (rm -rf storage/cache/*)
✅ Autoload regeneration (composer dump-autoload --optimize)
✅ Permission fixes (chmod 755 storage/private-shared/files)
✅ MIME type configuration variations
Workaround Solution
Using external image hosting services:
Users upload to Imgur, PostImage, etc.
Paste direct links in posts
Flarum Discussion Cards works perfectly with external image links
Less technical overhead
Questions for Flarum Community
Has anyone experienced similar FoF Upload activation issues on Hostinger?
Are there known compatibility issues with mixed directory structures?
Any alternative upload extensions that work where FoF Upload fails?
How to debug why an extension installs but won't activate?
Current Status
The forum functions perfectly except for native file uploads. External image links provide adequate functionality with Flarum Discussion Cards working as expected.
Server Directory Structure Terminology:
public_html]$ ls
assets config.php extend.php LICENSE site.php votar_php
CHANGELOG.md cookies.txt extensions public sitio_original web.config
composer.json default.php flarum README.md storage
composer.lock error_log index.php sitemap.xml vendor
-------- cd public
-bash: cd: public: No such file or directory
[u148719152@fr-int-web1904 vendor]$ ls
afrux dragonmantank ianm middlewares serakoi
archlinux-de ecnu-im illuminate migratetoflarum softcreatr
askvortsov egulias intervention mobiledetect staudenmeir
autoload.php enshrined isaced monolog swiftmailer
axy fgribreau jaybizzle nearata sycho
bin fig jenssegers neoncube symfony
brick filp justoverclock nesbot tecnickcom
capybash firebase laminas nette tijsverkoyen
carbonphp flamarkt laravel nikic v17development
clarkwinkelmann flarum league opis voku
components flarum-lang litalino psr walsgit
composer fof maicol07 pusher webmozart
datlechin franzl malago ralouphie wikimedia
dflydev guzzlehttp matthiasmullie ramsey
doctrine huseyinfiliz michaelbelgium s9e
[u148719152@fr-int-web1904 vendor]$ cd ..
[u148719152@fr-int-web1904 public_html]$ cd public
[u148719152@fr-int-web1904 public]$ ls
assets
[u148719152@fr-int-web1904 public]$ cd assets
[u148719152@fr-int-web1904 assets]$ ls
admin.css admin.js.map forum.css forum.js.map
admin-dark.css avatars forum-dark.css rev-manifest.json
admin-es.js covers forum-es.js
admin-es.js.map files forum-es.js.map
admin.js fonts forum.js
Migration Background
Before Migration:
✅ Subdomain: forograma.fictograma.com with FoF Upload WORKING
✅ Location: /home/u148719152/domains/fictograma.com/public_html/forograma/
✅ FoF Upload: Fully functional on subdomain
After Migration:
✅ New Domain: fictograma.com (main domain)
❌ FoF Upload: Stopped working immediately after migration
✅ Other Features: All other Flarum functions work perfectly
Migration Process Used
1. Copied Flarum files from subdomain to main domain
cp -r forograma/public/* ./
cp -r forograma/vendor ./
cp -r forograma/storage ./
2. Updated config.php
'url' => 'https://fictograma.com',
3. Created .htaccess in old subdomain to redirect
echo "RewriteEngine On" > forograma/.htaccess
echo "RewriteRule ^(.*)$ https://fictograma.com/\$1 [R=301,L]" >> forograma/.htaccess
The Critical Clue
FoF Upload worked perfectly on the subdomain but broke immediately when moved to the main domain, suggesting:
Path-related issues in FoF Upload configuration
Database references still pointing to old subdomain paths
Cached configuration from the subdomain installation
Permission inheritance problems during migration
Additional Diagnostic Info
The mixed directory structure (some files in root, some in public/) might be a result of the migration process rather than the original installation method.
Current Theory
The migration from subdomain to main domain created path resolution conflicts that FoF Upload cannot handle, while other Flarum components adapted successfully.
The problem is likely in FoF Upload's path handling during domain changes, not in the basic installation or server configuration.