Previous Thread
Next Thread
Print Thread
Hop To
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Hi, guys -

My host has migrated us to a new data center (I'm on a shared server) and ever since I've noticed 2 issues:

1) When you click on the Log In link on the main forums page:

http://www.gangsterbb.net/threads/ubbthreads.php?http://www.gangsterbb.net/threads/ubbthreads.php?ubb=login&ocu=http%3A%2F%2Fwww.gangsterbb.net%2Fthreads%2Fubbthreads.php%3Fubb%3Dcfrm

I get the "Not Acceptable!" mod_security warning that I've seen before. Last time this happened, the web host (ASO) whitelisted something and it worked again. Interestingly, there is a work-around in the mean time: Clicking on a user profile brings up its own log-in link that does work:

http://www.gangsterbb.net/threads/ubbthreads.php?ubb=showprofile&User=2

Now, before I contact them to fix my log-in issue, I have another issue that I'm not sure is something they can also fix, or if it's a UBB settings issue...

2) When I try to attach a file (which has been working fine all along), I now get broken images and the file doesn't load properly. (See attached, which did work here). In UBB Control Panel > Permission Checks, everything reports as "OK". Are there other places I can look to see what might be going on? Perhaps a change to the Server Information might be breaking it? Any ideas?

Thanks!

JG
Attachments
AttachedFiles-broken.jpg


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
is the test.file file in the attachments folder?
If not use the test link in the cp.
CP>master settings>paths&database
Absolute PATH to Attachment Storage Directory

Select the test directory under the path.
If successful it will create a file named test.file in that folder as well as a prompt that it passed.
It looks for that file when making an attachment.

So I would also check for the file to actually exist.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Thanks for the reply, Ruben -

See attachments: the test.file (0 bytes) is located in the attachments folder, but there's no Path to Attachments in my CP settings (7.6.1.1)

P.S. I should add I've been getting some connection reset/lag issues/warnings since the server migration, so maybe that's part of the problem. But there haven't been any successful attachments in a couple weeks apparently... Host still hasn't gotten back to me. :-/
Attachments
GBB-attach-test.file.jpg GBB-cp-paths.jpg ThreatSecured.jpg

Last edited by jgeoff; 12/30/2022 3:41 PM.

GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
aha
I thought you were on the current version
ubb 6.7.2 I think is in the attachment's menu.
They moved it in 7.x
There should be a path entry as well as a test link somewhere.
For attachments and uploaded avatars.

It is a absolute path so if the new server changed then it probably is incorrect.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Okay, in Threads 7.6.1.1, the Attachments Directory info is in the "Features/Attachments" section, not the "Attachments" section, for some reason... In any event, everything checks out...
Attachments
GBB-cp-attach.jpg


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Great.
That is all I got to try.
Oh wait you are using imagemajick
Maybe that is not setup correctly.
Try changing the settings to use GD instead.

Last edited by Ruben; 12/30/2022 4:22 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Originally Posted by Ruben
Oh wait you are using imagemajick
Maybe that is not setup correctly.
Try changing the settings to use GD instead.

Switching from ImageMagick to GD2 worked!
I'll have to ask the host about that, too... if they ever get back to me...

Thanks, Ruben!


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Ugh. ASO Tech Support finally got back to me about my log-in / mod_security issue. I was hoping it'd be a quick fix as in the past, but does this make any sense to anyone?

Originally Posted by ASO Tech Support
I have checked the mod security rule and could see that the action you are trying to do looks suspicious. You have to contact the application provider and ask them for the details. You can provide them with these details:

[*] URLS Affected: /threads/ubbthreads.php
[*] Description: Atomicorp.com WAF Rules: Uniencoded possible Remote File Injection attempt in URI (AE)

In the server, the ImageMagick version is already installed. You can verify the same at this link: http://gangsterbb.net/phpinfo.php

Again, everything was working just fine until they migrated to a new server farm.

When you click on the Log In link on the main forums page at gangsterbb.net :

http://www.gangsterbb.net/threads/ubbthreads.php?http://www.gangsterbb.net/threads/ubbthreads.php?ubb=login&ocu=http%3A%2F%2Fwww.gangsterbb.net%2Fthreads%2Fubbthreads.php%3Fubb%3Dcfrm

I get the "Not Acceptable!" mod_security warning that I've seen before. Last time this happened, the web host (ASO) whitelisted something and it worked again. Interestingly, there is a work-around in the mean time: Clicking on a user profile brings up its own log-in link that does work:

http://www.gangsterbb.net/threads/ubbthreads.php?ubb=showprofile&User=2


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
I see that you are on UBB.threads 7.6.1. A lot has been fixed since then. Here is the fix for your issue affecting version 7.6.1

DESCRIPTION:
This fix returns protocol-relative URLs since an overzealous ModSecurity firewall rule may not like having URL query strings with a suggested HTTP/HTTPS protocol in them.

in /libs/ubbthreads.inc.php
AROUND LINE 985, FIND
Code
	return "$http://{$_SERVER['HTTP_HOST']}{$url}";

REPLACE WITH
Code
	return "//{$_SERVER['HTTP_HOST']}{$url}";


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
1 member likes this: Gizmo
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
That seems to have done it -- thanks, Isaac!

I guess I should look into upgrading... wink

Do you think upgrading will restore my ability to use ImageMagick? According to phpinfo (link in previous post), it is installed (ver 3.4.3), but stopped working after the migration. GD2 is working fine. I have no problem sticking with GD2 (don't really know the difference), but the Threads CP says ImageMagick is preferred... (my current paths are /usr/local/bin/convert and /usr/local/bin/mogrify)


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
1 member likes this: isaac
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Imagick and ImageMagick are different, one is a compiled system binary (image magick) and the other is a PHP module which doesn't provide the same tools the ImageMagick binaries do (convert and mogrify). PHPInfo will not provide information about ImageMagick as it's a system binary and not a part of PHP.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Thanks, Giz... I'll ask them again about ImageMagick. I didn't realize it was separate, and perhaps the webhost support person didn't realize it either... wink

Is there a reason why it's preferable to use over GD2, or does it really not matter much?


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Imagemagick produces superior images than GD, they're always sharper and clearer; but not all hosts have it available.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
For the record, problem was they changed /usr/local/bin/ to /usr/bin/ ...all's okay again.

Thanks, guys!


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 458 guests, and 91 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)