MonkeyCMS Forum

Go Back   MonkeyCMS Forum > MonkeyCMS > Troubleshooting and Bug Reports
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-02-2010, 03:56 PM
chrisjlocke chrisjlocke is offline
Super Moderator
 
Join Date: Apr 2007
Location: Essex, UK
Posts: 1,059
Default Weird variable 'bug' for protectedimages

Tried to upload some pictures on a new install, but it wouldn't work - mkdir was failing to create the 'cachedimages' directory.

A bit of investigation led to the protected_images directory variable not being set. Bizarre.

To cut a long story short, the php code was
$imagedir = $siteArr[Protected_Images_Directory];

On my server, this doesn't work. It has to be
$imagedir = $siteArr['Protected_Images_Directory'];

ie, the word is in single quotes.

Is this a bug in MonkeyCMS, or is there a setting somewhere I can create to 'force' the original method to work?

This is on php 5.2.10 by the way, so don't know if its a recent change...?
__________________
http://www.cscomputerservices.co.uk/ | Providing complete computer solutions | Web hosting with MonkeyCMS pre-installed
Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:14 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© Poisonous Monkey