Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Secure Files Module trunk r5 broken


Reply


2 Posts   1059 Views

Avatar
x75

Community Member, 42 Posts

3 December 2009 at 10:33pm

Hi,

i just downloaded the current Version of the SecureFiles Module and moved it to our Server. When I run /dev/build/?flush=1
I get the following error:
# SecureFilePermission
Parse error: syntax error, unexpected T_STRING in /var/syscp/webs/x75/kwf/securefiles/code/SecureFileController.php on line 24

It's SilverStripe 2.3.4.

Anyone else get this error?
Johannes

Avatar
socks

Community Member, 191 Posts

6 December 2009 at 12:51pm

Looks like on line 23 it's missing the last quote
$rewrite .= "RewriteBase " . (BASE_URL ? BASE_URL : "/") . "\n;

$rewrite .= "RewriteBase " . (BASE_URL ? BASE_URL : "/") . "\n";

I also found a carriage return after the ?> on a few of the PHP pages,
But there is still some other bug that's causing an "Error Saving Content" in the Files & Images section.