1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Thumbnail image in the attachments do not work

Discussion in 'Troubleshooting and Problems' started by crazyman, Apr 15, 2016.

  1. crazyman

    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
     

    Attached Files:

    • 25.jpg
      25.jpg
      File size:
      44.9 KB
      Views:
      13
  2. crazyman

    crazyman New Member

    @Brogan Is it help solve that problem
     
  3. Mike

    Mike XenForo Developer Staff Member

    Can you provide a demo URL?
     
  4. crazyman

    crazyman New Member

  5. Brogan

    Brogan XenForo Moderator Staff Member

  6. crazyman

    crazyman New Member

    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?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    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.
     
  8. crazyman

    crazyman New Member

  9. Mike

    Mike XenForo Developer Staff Member

    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.
     
  10. crazyman

    crazyman New Member

    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>
    
     
  11. Mike

    Mike XenForo Developer Staff Member

    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]
     
  12. crazyman

    crazyman New Member

    Right
    When you delete a problem ended and photos surfaced
    Stopped transfer links Forums http://www.crazyman.co/vb/f19
    Can you edited so as not rewritten
    Or send me .htaccess code is correct instead of the old
     
  13. Mike

    Mike XenForo Developer Staff Member

    How did you determine those were the redirects to use? Did you use a tool to generate them?
     
  14. crazyman

    crazyman New Member

    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
     
  15. Mike

    Mike XenForo Developer Staff Member

    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.
     
  16. crazyman

    crazyman New Member

    I do not understand this amendment can you explain to me what to do

    I want to redirect links from vBulletin without re-writing or influenced Images Attachments
     
  17. Mike

    Mike XenForo Developer Staff Member

    As an example:
    Code:
    RewriteRule ^f([\d]+)$ forumdisplay.php?f=$1 [NC,L]
    But I have not tested this.
     
    crazyman likes this.
  18. crazyman

    crazyman New Member

  19. crazyman

    crazyman New Member

    Problem ended
    Thank you Mike for your help
     
  20. crazyman

    crazyman New Member

    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
    
     

Share This Page