The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload problem
#5
The problem was the 'DOCUMENT_ROOT' : in my case, he had nothing to do with GS.
So, the solution is :

In upload-ajax.php
Replace the line : $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/';
With : $targetPath = GSDATAUPLOADPATH;

In order to have the same code to do the same thing, we can do the equivalent in upload.php
Replace the line : $path = tsl("../data/uploads/");
With : $path = GSDATAUPLOADPATH;

The code is now more simple and works very well in all cases.
Reply


Messages In This Thread
Upload problem - by spilarix - 2010-03-16, 20:20:13
Upload problem - by sal - 2010-03-16, 20:59:02
Upload problem - by spilarix - 2010-03-16, 21:16:20
Upload problem - by internet54 - 2010-03-17, 00:46:13
Upload problem - by spilarix - 2010-03-17, 06:13:55
Upload problem - by Zegnåt - 2010-03-17, 06:54:11
Upload problem - by ccagle8 - 2010-03-17, 20:28:34
Upload problem - by spilarix - 2010-03-18, 00:28:25
Upload problem - by ccagle8 - 2010-03-18, 20:22:03
Upload problem - by hugo - 2010-03-30, 19:37:55
Upload problem - by spilarix - 2010-04-26, 23:45:16



Users browsing this thread: 2 Guest(s)