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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Secure Files Module trunk r5 broken


Go to End


2 Posts   1416 Views

Avatar
x75

Community Member, 43 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.