Jump to content

Error for some users inserting gallery images into posts


watchhead

Recommended Posts

Posted

Hello All,

I wonder if anyone can help as this one has me stumped.

Our forum has had the Gallery application available for a while now but, with the recent problems with Photobucket (is anyone else experiencing some PB hotlinks not displaying images in posts?) we have seen usage of the Gallery increase among our members.

The Gallery itself works fine.  The issue is when some users want to insert one of their gallery items into a topic / reply using the 'insert other media' ¦ 'insert existing attachment' option,

For some users, when they click on 'insert existing attachment' they receive a message from the forum saying 'Something went wrong.  Please try again'.  Other users can insert images from the gallery without any problems.

wrong_zps8iziguba.png

In the system logs, I'm getting a 'Cannot Connect' error.  The gallery images are set to be stored on a separate server to where the forum and forum DB is.  In the logs, all of the storage server's details appear correct (server name, FTP username and password, etc).  Below is the system log for the error, minus server names and passwords.

The forum is updated to v4.1.14.2.  Any help would be greatly appreciated.

SYSTEM LOG:

IPS\Ftp\Exception: COULD_NOT_CONNECT (0)
#0 /var/www/vhosts/<forumdomain>/httpdocs/system/File/Ftp.php(239): IPS\_Ftp->__construct('ftp.<ftpaddress>....', '<FTPusername>', '<FTPPassword>', '21', false)
#1 /var/www/vhosts/<forumdomain>/httpdocs/system/File/Ftp.php(330): IPS\File\_Ftp->ftp()
#2 /var/www/vhosts/<forumdomain>/httpdocs/system/Theme/Theme.php(734) : eval()'d code(8337): IPS\File\_Ftp->filesize()
#3 [internal function]: IPS\Theme\class_core_global_forms->uploadFile('http://www.the...', Object(IPS\File\Ftp), NULL, true, true, 'http://www.the...')
#4 /var/www/vhosts/<forumdomain>/httpdocs/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array)
#5 /var/www/vhosts/<forumdomain>/httpdocs/system/Theme/Theme.php(734) : eval()'d code(966): IPS\Theme\_SandboxedTemplate->__call('uploadFile', Array)
#6 /var/www/vhosts/<forumdomain>/httpdocs/system/Theme/Theme.php(734) : eval()'d code(966): IPS\Theme\SandboxedTemplate->uploadFile('http://www.thew...', Object(IPS\File\Ftp), NULL, true, true, 'http://www.thew...')
#7 [internal function]: IPS\Theme\class_core_global_editor->myMediaResults(Array, '\n\n\t\n\t<ul class=...', Object(IPS\Http\Url\Internal), 'gallery_Images')
#8 /var/www/vhosts/<forumdomain>/httpdocs/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array)
#9 /var/www/vhosts/<forumdomain>/httpdocs/system/Theme/Theme.php(734) : eval()'d code(922): IPS\Theme\_SandboxedTemplate->__call('myMediaResults', Array)
#10 /var/www/vhosts/<forumdomain>/httpdocs/system/Theme/Theme.php(734) : eval()'d code(922): IPS\Theme\SandboxedTemplate->myMediaResults(Array, '\n\n\t\n\t<ul class=...', Object(IPS\Http\Url\Internal), 'gallery_Images')
#11 [internal function]: IPS\Theme\class_core_global_editor->myMediaContent(Array, '\n\n\t\n\t<ul class=...', Object(IPS\Http\Url\Internal), 'gallery_Images')
#12 /var/www/vhosts/<forumdomain>/httpdocs/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array)
#13 /var/www/vhosts/<forumdomain>/httpdocs/applications/core/modules/front/system/editor.php(283): IPS\Theme\_SandboxedTemplate->__call('myMediaContent', Array)
#14 /var/www/vhosts/<forumdomain>/httpdocs/applications/core/modules/front/system/editor.php(283): IPS\Theme\SandboxedTemplate->myMediaContent(Array, '\n\n\t\n\t<ul class=...', Object(IPS\Http\Url\Internal), 'gallery_Images')
#15 [internal function]: IPS\core\modules\front\system\_editor->myMedia()
#16 /var/www/vhosts/<forumdomain>/httpdocs/system/Dispatcher/Controller.php(85): call_user_func(Array)
#17 /var/www/vhosts/<forumdomain>/httpdocs/system/Dispatcher/Dispatcher.php(129): IPS\Dispatcher\_Controller->execute()
#18 /var/www/vhosts/<forumdomain>/httpdocs/index.php(13): IPS\_Dispatcher->run()
#19 {main}

BACKTRACE

#0 /var/www/vhosts/<forumdomain>/httpdocs/init.php(506): IPS\_Log::log('IPS\\Ftp\\Excepti...', 'uncaught_except...')
#1 [internal function]: IPS\IPS::exceptionHandler(Object(IPS\Ftp\Exception))
#2 {main}

Posted

Yes, all was fine with the FTP connection, the problem was with some corrupted files within one of the Gallery folders.  Sorted that and all works fine now.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...