News:

Wondering if this will always be free?  See why free is better.

Main Menu

Upgrade Issues

Started by BlackPowderSmoke, May 16, 2020, 05:25:48 PM

Previous topic - Next topic

BlackPowderSmoke

I upgraded a site from SMF 2.0.9  to 2.0.17. Now I have two issues.

The first is a 500 error displays or a window opens to post a new topic when one attempts to post a post with a .jpg attachment. The image uploads but will not post. This only happens with the .jpg extension.

In the course of troubleshooting, a second issue has surfaced. The text appears centered on the page, not to the left default.

This is the site...   https://blackpowdersmoke.com/colt/index.php

Thank you.

Sir Osis of Liver

First problem is caused by memory error, the jpg must be quite large.  Centered text I've not seen before, must be some stray css somewhere.  Any mods installed?
When in Emor, do as the Snamors.
                              - D. Lister

BlackPowderSmoke

Quote from: Sir Osis of Liver on May 16, 2020, 05:38:44 PM
Any mods installed?

Yes. Several...

Users Online Today   2.0.3
SMF 2.0.1 Update
Simple Audio Video Embedder
Ad Managment
RSS Feed Poster
BxK's WAP Mod
Member Color Link
Ad Managment
SMF 2.0.2 Update
PM to New Members
Ad Managment
Simple Audio Video Embedder
Users Active in Last 24 Hours

BlackPowderSmoke

Quote from: Sir Osis of Liver on May 16, 2020, 05:38:44 PM
First problem is caused by memory error, the jpg must be quite large. 
These are normal sized pics that were being uploaded with no problem before upgrade. The problem affects all .jpg attachments.

Sir Osis of Liver

500 should log a server error.  Can you get to server error log?

Just a guess, but try uninstalling BxK's WAP Mod, see if it fixes centered text.
When in Emor, do as the Snamors.
                              - D. Lister

Arantor

Sounds like the now infamous dl error.
Holder of controversial views, all of which my own.


Sir Osis of Liver

When in Emor, do as the Snamors.
                              - D. Lister

Arantor

Yup, would be my first guess for *all* JPG upload issues on 2.0.17...
Holder of controversial views, all of which my own.


BlackPowderSmoke

Quote from: Sir Osis of Liver on May 16, 2020, 05:53:16 PM
500 should log a server error.  Can you get to server error log?

Just a guess, but try uninstalling BxK's WAP Mod, see if it fixes centered text.

Tried uninstalling the mod. Still the same. Did the large upgrade, suspect dl error as your link suggested.

Have backups, but do not want to revert back.

Sir Osis of Liver

You have an open <center> tag on the banner top of page.
When in Emor, do as the Snamors.
                              - D. Lister

BlackPowderSmoke

I have repeated upgrade process,  removed hooks, created a php.ini file. I am waiting to hear back from host regarding 500 error.

I do not see an open <center> tag on the top of page. Odd.

BlackPowderSmoke

Quote from: Arantor on May 16, 2020, 06:11:24 PM
Yup, would be my first guess for *all* JPG upload issues on 2.0.17...
Please elaborate. I have removed all mods and hooks and created a php.ini file.

BlackPowderSmoke

Uploading issue resolved. Php upgrade was the issue. Thanks for the help.

Sir Osis of Liver

You haven't fixed the centered text problem in display template.  You have an open <center> tag in index.template.php here -



<center><img alt="1858banner" src="http://blackpowdersmoke.com/colt/S.jpg">



If you add a closing tag </center> should fix it.  Bearing in mind that html <center> tag has been deprecated for years and isn't supported in html5, it still works in some browsers but should be replaced with css.
When in Emor, do as the Snamors.
                              - D. Lister

BlackPowderSmoke

Quote from: Sir Osis of Liver on May 17, 2020, 11:20:20 PM
You haven't fixed the centered text problem in display template.  You have an open <center> tag in index.template.php here -



<center><img alt="1858banner" src="http://blackpowdersmoke.com/colt/S.jpg">



If you add a closing tag </center> should fix it.  Bearing in mind that html <center> tag has been deprecated for years and isn't supported in html5, it still works in some browsers but should be replaced with css.

Thank you so much, Sir Osis of Liver. My final issue of centered text is resolved.

BlackPowderSmoke

I tried marking this as solved.

Advertisement: