1
elbaastro
can not upload file in News
  • 2014/10/18 8:50

  • elbaastro

  • Just popping in

  • Posts: 17

  • Since: 2006/9/6 7


Hello,
cannot upload file in News,
and the debugger is telling this
'/class/xoopstory.php' is deprecated since XOOPS 2.5.4, please create your own class instead.
'/class/xoopstopic.php' is deprecated since XOOPS 2.5.4, please create your own class instead.
'Database::getInstance();' is deprecated since XOOPS 2.5.4, please use 'XoopsDatabaseFactory::getDatabaseConnection();' instead.

the mapson server are chmd 777
Have someone advice what to do?

thanks

2
Mamba
Re: can not upload file in News
  • 2014/10/19 22:33

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


These messages are not related to Uploading, and are just info for the developer to make some updates to the code, but they don't cause any issue for the user.

What version of PHP, XOOPS and News do you have?

Were you able to upload files previously? Or are you trying to do it for the first time and it's just not working?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
elbaastro
Re: can not upload file in News
  • 2014/10/22 10:45

  • elbaastro

  • Just popping in

  • Posts: 17

  • Since: 2006/9/6 7


Hello, Im using xoops 2.5.7
Minimum PHP benodigd: 5.2 ( versie is 5.3.17) so OKeY
News 1.67 NL version
I have tryed to upload a htm file, a word doc or a textfile,, it is not into the map uploads, news/file
And no; it is a new installation xoops 2.5.7
but oke the module news is makes for 2.5.5 dutch xoops downloaded.
To upload a immage is not a problem.


4
Mamba
Re: can not upload file in News
  • 2014/10/22 11:39

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


For security reasons, as a default, we provide only very limited set of files that can be uploaded. You can define what files can be uploaded to your site with News in the module's Preferences.

For a list of potential options, you can check out the file:

\include\mimetypes.inc.php

However, we do not recommend to allow uploading HTML or similar files by your users, because they could contain viruses. If it is only for the Admin, then it's a different story...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

165 user(s) are online (69 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits