Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 186
Total: 186

Author Topic: Error on the latest version  (Read 2301 times)

0 Members and 1 Guest are viewing this topic.

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Error on the latest version
« on: January 02, 2021, 02:12:18 am »
Hi,

Sorry to say there is an error with the new version of the downloads.

The site is using
SMF 2.0.17
Sources 2.0.17
Default Templates 2.0.16
Language Files 2.0.16
Current Templates ?
PHP ea-php73

I have listed all errors below as they are different in some way whether it be the line number or the actual error itself.

I have since reverted back to the previous 'Downloads2.php' file and everything is working fine

Code: [Select]
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''Array''

WHERE ID_FILE = 11111 LIMIT 1' at line 4

UPDATE smf_down_file

allowcomments = 1, sendemail = 0, approved = 1,
fileurl = 'http://www.filefactory.com/file.rar',filesize = 'Array''

###################

https://www..net/index.php?action=downloads&sa=add2
2: get_headers():
This function may only be used against URLs
File: /home4//public_html/Sources/Downloads2.php
Line: 12242

###################
https://www..net/index.php?action=downloads&sa=add2
2: array_change_key_case() expects parameter 1 to be array, bool given
File: /home4//public_html/Sources/Downloads2.php
Line: 12242

###################

https://www..net/index.php?action=downloads&sa=edit2
8: Array to string conversion
File: /home4//public_html/Sources/Downloads2.php
Line: 2581

###################

https://www..net/index.php?action=downloads&sa=edit2
8: Array to string conversion
File: /home4//public_html/Sources/Downloads2.php
Line: 2591

Offline Hatshepsut

  • Downloads Pro Customer
  • Jr. Member
  • *****
  • Posts: 69
  • Perfectionist
    • View Profile
    • Bulgarian Nationalist Forum
Re: Error on the latest version
« Reply #1 on: January 02, 2021, 05:56:03 am »
I get similar error with latest 5.0.3 version. I am using SMF 2.1 RC3

Code: [Select]
Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''0''

WHERE ID_FILE = 3988 LIMIT 1' at line 4
File: /home/bulataka/public_html/BNF/Sources/Downloads2.php
Line: 2595

I get this error message when I'm editing a download item and trying to change its category.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Error on the latest version
« Reply #2 on: January 02, 2021, 09:48:20 am »
I think it requires allow_url_fopen to be set

http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen


I am posting a fix that checks for this now and some other checks on remotefilesize
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Hatshepsut

  • Downloads Pro Customer
  • Jr. Member
  • *****
  • Posts: 69
  • Perfectionist
    • View Profile
    • Bulgarian Nationalist Forum
Re: Error on the latest version
« Reply #3 on: January 02, 2021, 10:35:46 am »
Do I need to set allow_url_fopen to ON ? And what about allow_url_include ?
My forum works on PHP 7.4 and both options are set to OFF

I have installed new 5.0.3a version, but still get the same error.
 
« Last Edit: January 03, 2021, 10:27:24 am by Hatshepsut »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Error on the latest version
« Reply #4 on: January 02, 2021, 11:06:08 am »
Just posted an updated to fix your last error. Missed one spot.

You should have allow_url_fopen if you want to counte remotely linked filesize
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Hatshepsut

  • Downloads Pro Customer
  • Jr. Member
  • *****
  • Posts: 69
  • Perfectionist
    • View Profile
    • Bulgarian Nationalist Forum
Re: Error on the latest version
« Reply #5 on: January 02, 2021, 12:25:41 pm »
Thanks for the fix, the error is gone :)

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Error on the latest version
« Reply #6 on: January 03, 2021, 03:29:28 am »
I've uploaded the new file and posted tests.

I now have different errors.

The file link I'm posting is

Code: [Select]
http://www.filefactory.com/file/2e7ncs6ezz2n/Dark.Paths_Liberation.War.Book.4.rar Feel free to edit this if you want to but I thought under the circumstances you should see the whole link posted

Then the image I'm adding to the post is [ Guests cannot view attachments ]

The errors are

[ Guests cannot view attachments ] [ Guests cannot view attachments ]

Now I have to admit I didn't uninstall the whole mod as I only changed the 'Downloads2.php' file from the last update which is the one that gave the original error.

It's also worth noting that I changed the folder limit to 3 and posted 4 times and the folder didn't change.

Reverting back to the the previous 'Downloads2.php' v5.0c file gives the same error but it only seems to be with .gif images, if I post a .jpg image the error doesn't occur
« Last Edit: January 03, 2021, 04:46:05 am by davejo »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Error on the latest version
« Reply #7 on: January 03, 2021, 10:28:17 am »
Looks like w arning errors resizing animated gifs. Does your gif still get resized?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Error on the latest version
« Reply #8 on: January 03, 2021, 11:02:13 am »
Looks like w arning errors resizing animated gifs. Does your gif still get resized?

It doesn't seem to no, the gif I posted is a static gif, it's not animated

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Error on the latest version
« Reply #9 on: January 03, 2021, 11:07:06 am »
Can you send the orginal file? The one above doesn't seem animated either. I might need to find a new resize gif class though as this one used is very old.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Error on the latest version
« Reply #10 on: January 03, 2021, 12:00:43 pm »
Can you send the orginal file? The one above doesn't seem animated either. I might need to find a new resize gif class though as this one used is very old.

I sent you a pm..it might help

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Error on the latest version
« Reply #11 on: January 06, 2021, 03:10:00 am »
I/m not sure if you saw the previous post or the PM so here is the gif.

If you're not going to go to the test site can you let me know and I'll delete it.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Error on the latest version
« Reply #12 on: January 06, 2021, 07:48:08 am »
You can get rid of the test site. The issue is with certain animated gifs.when they are resized.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 185
    • View Profile
    • Quizland
Re: Error on the latest version
« Reply #13 on: January 06, 2021, 08:04:05 am »
You can get rid of the test site. The issue is with certain animated gifs.when they are resized.

Ok thanks for letting me know

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
6962 Views
Last post September 05, 2008, 02:32:18 pm
by MoreBloodWine
13 Replies
9605 Views
Last post September 18, 2008, 10:56:56 pm
by Boomslanger
6 Replies
16615 Views
Last post August 13, 2009, 10:08:32 pm
by SMFHacks
3 Replies
15081 Views
Last post November 19, 2012, 11:54:22 pm
by SeaChaser
3 Replies
2251 Views
Last post February 01, 2013, 08:51:39 pm
by phxmaximus

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal