The following warnings occurred:
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
/printthread.php 203 postParser->parse_message
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
/printthread.php 203 postParser->parse_message
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
/printthread.php 203 postParser->parse_message
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
/printthread.php 203 postParser->parse_message
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
/printthread.php 203 postParser->parse_message
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
/printthread.php 203 postParser->parse_message
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
/printthread.php 203 postParser->parse_message
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
/printthread.php 203 postParser->parse_message
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
/printthread.php 203 postParser->parse_message
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
/printthread.php 203 postParser->parse_message
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
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
Upload problem - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Upload problem (/showthread.php?tid=536)



Upload problem - spilarix - 2010-03-16

Hello,

When i try to upload some files in admin, no files are added neither in folder nor in interface.
However, when the upload is finished i can see "Completed".
Moreover, upload works correctly when JS is disable.

Problem environment :
- "Health" says that everything is OK.
- Tested with many pictures < 2 Mo
GS 2.01 - Php 5.3 - Firefox 3.6 and IE8
- No error in Php log
- No error in Apache log

No request seems to be sent (console Firebug) before the "refresh" call of upload.php


Thanks for your help !


Upload problem - sal - 2010-03-16

FlashBlock?


Upload problem - spilarix - 2010-03-16

sal Wrote:FlashBlock?

Same problem after having disable my no-ads plugin on Firefox and I don't have any IE8 plugin.


Upload problem - internet54 - 2010-03-17

Did you chmod the data (all all sub-folders) correctly?


Upload problem - spilarix - 2010-03-17

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.


Upload problem - Zegnåt - 2010-03-17

Aah, great catch, apparently not all files are using the constants yet as these are relatively new.


Upload problem - ccagle8 - 2010-03-17

i made the change to the core for upload-ajax, but the one in upload.php would change how the links to files/images are shown, correct?


Upload problem - spilarix - 2010-03-18

It changes how they are shown and the upload location :
Code:
$file_loc = $path . $count.'-'. $_FILES["file"]["name"];
[...]
move_uploaded_file($_FILES["file"]["tmp_name"], $file_loc);



Upload problem - ccagle8 - 2010-03-18

you cant use an absolute path when viewing a file like that, so changing $path to use the constant wouldnt work


Upload problem - hugo - 2010-03-30

Thanks spilarix for bringing up this isue with the file uploader.
The same thing has happened to me and I intend to try it out with the java script thing turned off.
I have read through the other comments for a solution but for a novice like myself I have not understood how to sort the problem out. That is if there is a solution found yet. I hope that this uploader will work in the next version.
I would like it if there is a solution explained in another way for a person like me who needs things explained in more detail.
Many thanks for this topic
and A big thanks to get simple for the best cms I have come accross. I'm loving it.
from Hugo


Upload problem - spilarix - 2010-04-26

Hugo -> modification on upload-ajax.php described in post #5 is the solution...