XF 1.5 PHP 7 problem showing full size attachments

AndyB

Well-known member
In testing a new server I'm going to migrate to, I have a problem with full size attachments not showing, this is the error message I show when I click the image name in the attachment viewer while editing the post:

pic001.jpg

This problem only occurs if I switch to ea-PHP70, ea-PHP55 and ea-PHP56 work fine. The new server has cPanel so I can quickly change the PHP version.

pic002.jpg

My server error log in the Admin Control Panel shows many of these errors, here's an example:

pic003.jpg

I used the xenforo_requirements.php test and it shows "Your server meets all of XenForo's PHP requirements.".
 

Dadparvar

Well-known member
The new server has cPanel so I can quickly change the PHP version.
In Direct admin you can easily change php version of any of your users, domain or subdomains:
2016-11-20_18-34-09.png
Just you need to install CustomBuild 2.0 plugin.

Recently I changes my server and also my php from 5.6 to 7. and everything is working fine.
 
Last edited:

AndyB

Well-known member
Thank you ŽivaAkcija and Dadparvar, I realize there are many forums using PHP 7 without issue. Hopefully I can find the problem with my installation of PHP 7 as I would prefer to use PHP 7.
 

Pierce

Well-known member
php 7 doesnt support... certain caching techniques? do you have any configured in your config?
 

AndyB

Well-known member
More information, the attachment manager below the post shows thumbnails just fine.

upload_2016-11-20_7-24-30.png
 

AndyB

Well-known member
php 7 doesnt support... certain caching techniques? do you have any configured in your config?
Thank you for helping, no I don't use any additional cache and nothing entered in my config.php regarding cache.
 

Liam W

Well-known member
Do you have the image that's causing the error, or is it all images? That error is caused by iconv by the looks of a quick Google.

Liam
 

AndyB

Well-known member
Strange that cPanel server information shows PHP Version 5.6.28 when the MultiPHP Manager in cPanel shows ea-PHP70.
 

AndyB

Well-known member
Do you have the image that's causing the error, or is it all images? That error is caused by iconv by the looks of a quick Google.

Liam
Hi Liam,

Yes all full size image attachments are broken. The only change I made was to enable iconv, so I it could very well be something to do with that.
 

Liam W

Well-known member
Hi Liam,

Yes all full size image attachments are broken. The only change I made was to enable iconv, so I it could very well be something to do with that.
iconv is required by XenForo, so if it isn't enabled XF won't work anyway :)
 

Luis

Well-known member
You have tried to disable the addons, especially those related with the attachments.
 

AndyB

Well-known member
Fixed it by installing ea_PHP71 in cPanel.

After installing ea_PHP71 I needed to install two additional extensions before I was able to view a thread, the extensions were these.

mysqli (php71-php-mysqlnd)
curl (php71-php-curl)
 
Last edited:
Top