Forums

Image Resize Action with curly brackets dosn't work after change the Server

brostalski 01 Oct, 2014
Hi!

After move my website to a new domain and server my image resize action dosn't work anymore.

I have set "Big image directory" and "Small image directory" to my destination folder
/usr/www/users/.../media/{folder}/
(changed my full path for post)

On my old server the {folder} was set to my userfolder where is in my formdata. Now on the new server the curly brackets are ignored. The debugger shows my path with the brackets as string.

What is the system requiremend for working curly brackets at this action?

Some ideas?
Thanks!
GreyHead 01 Oct, 2014
Hi brostalski,

I didn't know that you could user {folder} in the image Directory.

Do you have folder defined in the form data?

Does it work if you hard-code a folder name e.g. cf_uploads ?

Bob
brostalski 01 Oct, 2014
Hi GreyHead,

yes i have defined it like
$form->data['folder'] = 'c382ab2d1d55f9e048a5dac5d2730982'; 


If i set the destination to
/usr/www/users/.../media/c382ab2d1d55f9e048a5dac5d2730982/

(changed my full path for post) it works. But no longer with curly brackets.

It must be due at the server configuration - my variable $_SERVER['REDIRECT_URL'] is changed too.
Now i use $_SERVER['REDIRECT_URI'] to get my full path to reload. With $_SERVER['REDIRECT_URL'] i get only /index.php
This topic is locked and no more replies can be posted.