News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Error log count over 5200000, what can cause it??

Started by Kawiherder398, July 22, 2021, 04:55:05 PM

Previous topic - Next topic

Kawiherder398

1st error

Code: (Find) [Select]
* @version 2.0.14
Code: (Replace) [Select]
* @version 2.0.16

2nd error

Code: (Find) [Select]
$sizes = @getimagesize($_FILES['attachment']['tmp_name']);

         // No size, then it's probably not a valid pic.
         // No size, then it's probably not a valid pic.
Code: (Replace) [Select]
$mime_valid = check_mime_type($_FILES['attachment']['tmp_name'], 'image/', true);
         $sizes = empty($mime_valid) ? false : @getimagesize($_FILES['attachment']['tmp_name']);

         // No size, then it's probably not a valid pic.

Steve

The first error can be ignored and then fixed after doing the update.

Is the second error the one in the image above? If it is, just download a copy of the Profile-Modify.php file and open it in a notepad editor such as EditPadLite or Notepad++ and search for just this line:

$sizes = @getimagesize($_FILES['attachment']['tmp_name']);
DO NOT pm me for support!

Kawiherder398

#22
It is the one in the picture.  That line is in the list under error 2  above.

Steve

Quote from: Steve on July 26, 2021, 08:57:15 AM... download a copy of the Profile-Modify.php file and open it in a notepad editor such as EditPadLite or Notepad++ and search for just this line:

$sizes = @getimagesize($_FILES['attachment']['tmp_name']);

If you find it, the fix is easy. Make sure there is no more than one line that matches, though.
DO NOT pm me for support!

Kawiherder398

Error 2 shows this

  // No size, then it's probably not a valid pic.
         // No size, then it's probably not a valid pic.

2 of the same??

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kawiherder398

What is says at the bottom of the forum front page

SMF 2.0.15 | SMF © 2017, Simple Machines
ClickSafe Pro-ButtonBar Version: 1.0.5
SMF Themes © 2021 smf.klikveilig.be [nofollow]
XHTML RSS WAP2

shawnb61

Yes, we had problems with some sites having two lines there. 

Delete one of the two lines - the entire line - and try again.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Sir Osis of Liver

That's a duplicate line in 2.0.15 Profile-Modify.php.  If you're seeing this -



  // No size, then it's probably not a valid pic.
         // No size, then it's probably not a valid pic.



It should be this -



$sizes = @getimagesize($_FILES['attachment']['tmp_name']);

// No size, then it's probably not a valid pic.
// No size, then it's probably not a valid pic.




Delete the extra tab in second line, that should fix the error.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

If this is what package manager is looking for -

Code: (Find) [Select]
$sizes = @getimagesize($_FILES['attachment']['tmp_name']);

         // No size, then it's probably not a valid pic.
         // No size, then it's probably not a valid pic.

Deleting second line will not fix it.  The extra tab is causing the glitch.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

shawnb61

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Sir Osis of Liver

Saw this on couple of upgrades, not on others.  Were there different files in 2.0.15 package?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

shawnb61

I chased it down at one point (it impacted my forum, too).  IIRC, it was far older than that.  Just never bit anyone until those specific lines were used in a s/r. 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Kawiherder398


vbgamer45

If it was me I would proceed with the the upgrade with the error.
Then go back and fix that line Profile-Modify.php manually.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sir Osis of Liver

If you make the fix in Profile-Modify.php and that's the only error, you should be able to upgrade to 2.0.16.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kawiherder398

It will be a couple days before I can attempt this.  This is something I have never done before so any advice and directions would be much appreciated.  I would not have made it this far on my own so many, many, many thanks for your advice and help!!

Sir Osis of Liver

Make a complete backup of forum files and database before you tinker with things.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Steve

DO NOT pm me for support!

Kawiherder398


Advertisement: