[SOLVED] download system borked

Post

Posted
Rating:
#7537 (In Topic #2176)
Avatar
Standard member
ironfeather is in the usergroup ‘Well-settled’

change of Category after file uploaded

Howdy,

Just experienced an unique issue perhaps. 

version: 10.0.34
PHP version: 7.3.25

Today I wanted to post a file for a download, using the form 

Add download

i posted title and then below in the upload area started uploading the 100M mp3 file... then i realized I had forgotten to select the proper catagory, so I did and I think this created the trouble, choosing this after the file upload?

hit save and error is:

PHP WARNING [2] Use of undefined constant OBFUSCATE_BIN_SUFFIX - assumed 'OBFUSCATE_BIN_SUFFIX' (this will throw an Error in a future version of PHP) in cms/pages/modules/cms_downloads.php on line 571 (version: 10.0.34, PHP version: 7.3.25-1+ubuntu16.04.1+deb.sury.org+1, URL: /cms/index.php?page=cms-downloads&type=_add&uploading=1)

now i am unable to add any downloads.

Let me know if I can provide more info and thank you in advance for any advice on this

Cheers

Stevyn

 

Last edit: by ironfeather


———–
Publisher of IronFeather Journal since 1987.  Host of KGNU Colorado Radio for 20 years. 
Currently in Japan & decided to focus on Composr as my number one CMS.
Composr site for community of Hokkaido:  Nandalow.com
Composr site for my freelance work: Futurecode.jp
My Compsr edits : 
http://ironfeather.com/bbs/viewtopic.php?f=12&t=2862
Twitter: https://twitter.com/futurecodejp

 
Online now: No Back to the top

Post

Posted
Rating:
#7539
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

It looks like a patch conflict. Try dropping in this replacement for sources/uploads.php:
https://gitlab.com/composr-foundation/composr/-/raw/master/sources/uploads.php


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7541
Avatar
Standard member
ironfeather is in the usergroup ‘Well-settled’
Hello, thanks much for reply and answer but  after a test with patch same result. 

it looks like 'editing' a download (from the past) also has same error result.

Code

PHP WARNING [2] Use of undefined constant OBFUSCATE_BIN_SUFFIX - assumed 'OBFUSCATE_BIN_SUFFIX' (this will throw an Error in a future version of PHP) in cms/pages/modules/cms_downloads.php on line 649 (version: 10.0.34, PHP version: 7.3.25-1+ubuntu16.04.1+deb.sury.org+1, URL: /cms/index.php?page=cms-downloads&type=__edit&id=55&uploading=1)


 

———–
Publisher of IronFeather Journal since 1987.  Host of KGNU Colorado Radio for 20 years. 
Currently in Japan & decided to focus on Composr as my number one CMS.
Composr site for community of Hokkaido:  Nandalow.com
Composr site for my freelance work: Futurecode.jp
My Compsr edits : 
http://ironfeather.com/bbs/viewtopic.php?f=12&t=2862
Twitter: https://twitter.com/futurecodejp

 
Online now: No Back to the top

Post

Posted
Rating:
#7542
Avatar
Standard member
ironfeather is in the usergroup ‘Well-settled’
I wanted to mention that i have two different sites with same version of Composr running and the other site, downloads (upload to download) work fine. So somehow my changing the folder of it created the trouble

———–
Publisher of IronFeather Journal since 1987.  Host of KGNU Colorado Radio for 20 years. 
Currently in Japan & decided to focus on Composr as my number one CMS.
Composr site for community of Hokkaido:  Nandalow.com
Composr site for my freelance work: Futurecode.jp
My Compsr edits : 
http://ironfeather.com/bbs/viewtopic.php?f=12&t=2862
Twitter: https://twitter.com/futurecodejp

 
Online now: No Back to the top

Post

Posted
Rating:
#7543
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Ok thanks. I aim to get back to you later tonight. Today was a bit distracting :o.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7544
Avatar
Standard member
ironfeather is in the usergroup ‘Well-settled’
thank you :) no rush, low priority as I can upload the old fashioned way with ftp

yes just woke up here and watched the news, total chaos there :(

———–
Publisher of IronFeather Journal since 1987.  Host of KGNU Colorado Radio for 20 years. 
Currently in Japan & decided to focus on Composr as my number one CMS.
Composr site for community of Hokkaido:  Nandalow.com
Composr site for my freelance work: Futurecode.jp
My Compsr edits : 
http://ironfeather.com/bbs/viewtopic.php?f=12&t=2862
Twitter: https://twitter.com/futurecodejp

 
Online now: No Back to the top

Post

Posted
Rating:
#7546
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Check sources/uploads.php is not overridden as sources_custom/uploads.php.

New constants were added to the file recently in this commit:

Fixed MANTIS-4463 (Upload filenames not obfuscated) (dd07ca30) · Commits · Composr ecosystem / Composr · GitLab

But seem to be missing on your site.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7547
Avatar
Standard member
ironfeather is in the usergroup ‘Well-settled’
Hello,

ok great news, you are correct I did have a custom uploads.php I had forgotten about. I removed that and with your replacement everything works great now.

Thank you very much!!!

  

Last edit: by ironfeather


———–
Publisher of IronFeather Journal since 1987.  Host of KGNU Colorado Radio for 20 years. 
Currently in Japan & decided to focus on Composr as my number one CMS.
Composr site for community of Hokkaido:  Nandalow.com
Composr site for my freelance work: Futurecode.jp
My Compsr edits : 
http://ironfeather.com/bbs/viewtopic.php?f=12&t=2862
Twitter: https://twitter.com/futurecodejp

 
Online now: No Back to the top
1 guest and 0 members have just viewed this.
Back to Top