1
HopeL
DMS Error
  • 2015/2/1 18:57

  • HopeL

  • Just popping in

  • Posts: 29

  • Since: 2009/8/21


I'm trying to use Document Management System but receive the following error when clicking on file Options after uploading a file.

Fatal error: Call to undefined function import_request_variables() in /home/site.tld/modules/dms/file_options.php on line 36

Line 36: import_request_variables("P","post_");

I've tried to research and all I can find is that this is deprecated code and won't work with PHP5. Is that correct? If so, how can I update the code so that I can continue to use DMS? Everything else is working well - just can't set Options on files or folders. If it isn't deprecated code, what could it be? Please help!

DMS 1.95
XOOPS Version XOOPS 2.5.7.1
PHP Version 5.4.36
mySQL Version 5.1.56-log
Server API cgi-fcgi
OS Linux

2
zyspec
Re: DMS Error
  • 2015/2/2 19:18

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


You should be able to replace line 36 in ./dms/file_options.php

import_request_variables("P""post_");


with:
extract($_POSTEXTR_PREFIX_ALL"post_");


This code isn't real safe, but it should let you get up and running...

EDIT: By the way you'll find this exact same code in 13 other places that will also need to be replaced.

3
zyspec
Re: DMS Error
  • 2015/2/2 23:10

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


By the way.... there's also several places where you need to replace the following too:

$HTTP_POST_VARS with $_POST
$HTTP_GET_VARS with $_GET
$HTTP_SERVER_VARS with $_SERVER

4
HopeL
Re: DMS Error
  • 2015/2/2 23:19

  • HopeL

  • Just popping in

  • Posts: 29

  • Since: 2009/8/21


Thank you zyspec! That worked!

Login

Who's Online

306 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 306


more...

Donat-O-Meter

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

Latest GitHub Commits