XF 1.5 Thumbnail image in the attachments do not work

crazyman

New member
There is a problem not to be displayed on the thumbnail attachments
Thumbnails appear in the attachments "jpeg"
It's not a show the rest of the image, such as jpg, png
 

Attachments

  • 25.webp
    25.webp
    12.2 KB · Views: 18
Yes, but the image present on the server
The statement data,attachments 777
The statement 's 666
Re- authorize the image to 777 and the same problem
There are some images can be displayed
How do I solve this problem?
 
There are attachments on that thread which are in the same directory so if one works, the rest should work.

If the images are present on the server, try setting the permissions to 0777 recursively on the data directory.

If the server is rewriting the permissions after you have done so, you would need to contact your host about that.
 
You'll need to identify why that redirect is happening. That isn't something that would normally happen out of the box. It may be preventing your web server from displaying the "real" file.
 
Is it possible that the problem be .htaccess
Code:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteRule t([\d]+)-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
    RewriteRule t([\d]+).html showthread.php?t=$1 [NC,L]
    RewriteRule f([\d]+)-([\d]+).html forumdisplay.php?f=$1&page=$2 [NC,L]
    RewriteRule f([\d]+) forumdisplay.php?f=$1 [NC,L]

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
 
Yes, it's caused by the custom rewrites you've added. Probably this one specifically:
Code:
RewriteRule f([\d]+) forumdisplay.php?f=$1 [NC,L]
 
I've used vBulletin 38 + vBseo
And recently used xf
I have links to topics and archiving Alamenendaat and I want to move the old links to the new links
So as not to lose Archiving
 
I understand that and I'm not suggesting not doing that, but you need to make your rules more specific, so I wanted to know where your redirects came from.

At the least, you may need to look at adding ^ at the beginning of and $ at the end of each of your custom rewrite regular expressions.
 
Etcetera problem has emerged
Can not record new members receive an error message
Code:
Server Error

Mysqli statement execute error : Field 'brapp_relationship_user' doesn't have a default value
1.Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
2.Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
3.Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
4.Zend_Db_Adapter_Abstract->insert() in XenForo/DataWriter.php at line 1638
5.XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1627
6.XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1419
7.XenForo_DataWriter->save() in XenForo/ControllerPublic/Register.php at line 416
8.XenForo_ControllerPublic_Register->actionRegister() in XenForo/FrontController.php at line 351
9.XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
10.XenForo_FrontController->run() in /home/crazyman/public_html/vb/index.php at line 13

Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Field 'brapp_relationship_user' doesn't have a default value - library/Zend/Db/Statement/Mysqli.php:214
 
Top Bottom