Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12400
Latest: mikel
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 40611
Total Topics: 7134
Most Online Today: 109
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 89
Total: 89

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

0 Members and 1 Guest are viewing this topic.

Offline davejo

  • Downloads Pro Customer
  • Full Member
  • *****
  • Posts: 117
    • View Profile
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

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 27
    • 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: 15291
    • 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

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 27
    • 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: 15291
    • 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

  • SMF Gallery Pro Customer
  • Newbie
  • *****
  • Posts: 27
    • 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: 117
    • View Profile
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: 15291
    • 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: 117
    • View Profile
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: 15291
    • 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: 117
    • View Profile
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: 117
    • View Profile
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: 15291
    • 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: 117
    • View Profile
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
4828 Views
Last post September 05, 2008, 02:32:18 pm
by MoreBloodWine
13 Replies
6998 Views
Last post September 18, 2008, 10:56:56 pm
by Boomslanger
6 Replies
5602 Views
Last post August 13, 2009, 10:08:32 pm
by SMFHacks
3 Replies
4137 Views
Last post November 19, 2012, 11:54:22 pm
by seachaser
3 Replies
1622 Views
Last post February 01, 2013, 08:51:39 pm
by phxmaximus

+- Recent Topics

Error after php upgrade by wargamesillustrated
Today at 04:32:35 am

New error with 5.0.3c by davejo
January 25, 2021, 05:59:12 am

Forum ToolBox by Monocero
January 23, 2021, 11:47:48 am

Gallery Pro v8.0 and PHP 7.4 by SMFHacks
January 20, 2021, 10:21:25 pm

[Mod] Tagging System by SMFHacks
January 13, 2021, 08:43:33 pm

Using Alternate PayPal Address by KKOG
January 13, 2021, 07:24:46 pm

Assigning a BuyNow Button to a product by SMFHacks
January 12, 2021, 04:59:32 pm

SMF Links by Nicole
January 10, 2021, 12:02:39 pm

Error on the latest version by davejo
January 06, 2021, 08:04:05 am

Recent topics on board index by eugen
January 01, 2021, 11:08:16 am

Powered by EzPortal