CB [1.5.3] The page isn't redirecting properly

Hi there guys,

A few days back I installed ContentBox on Railo 4 and now it seems that all error are gone.
I play in administrator by creating pages, posts, and all seem to work just perfect, but since I wasn’t ready to go into that project I set it a side until today.

When I returned to the site I encounter a weird error or behavior.
If I go to www.villapremiere.com

Some kind of an infinite redirection occur:
www.villapremiere.com/modules/modules/modules/modules/modules/modules/modules/modules/modules/modules/modules/modules/modules/modules/modules/modules/modules/modules/modules/modules/contentbox-dsncreator?CFID=7c9d46d8-2d39-4175-b2f5-9072e3cacb7a&CFTOKEN=0

Any ideas how this get mess up?
I do not recall doing any changes to the core or modules… nothing.

Thanks guys

Weird that mostly happens when it detects that ContentBox is not installed

Hi Luis,

I delete all modules, replace with new ones… and all get back into track again.

Question Luis:
To build widgets and custom templates, any doc resources?

Thanks again

I am working on it. For now, please see inline documentation in the layouts, I wrote a lot in them already.

Also, the ContentBox Utilities, will auto-generate all these for you, so you just have to fill in the blanks. Sorry bout this, but I have not completed the docs.

NAUGHTY LUIS

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

You can always hit me up or visit www.andyscott.id.au as I blog a lot of what I do there, but in case something is not covered feel free to email me about your question.

Thank you Andrew,

I’m building a widget to create photo-galleries, but I came across with an issue using DirectoryCreate()

if(imgfolderExists){
listImgs = DirectoryList(imgsRoot,false,‘name’,‘asc’);
}else{
DirectoryCreate(imgsRoot);
}

When that directory is created, I cannot write or upload images into it, I need to change the write permission to 777 from 755 but I habe been google-ing and nothing, any ideas?

Note: Im running Railo 4

Thank you again Andrew!

Felipe Serrano

Thank you Luis :wink:

That sounds like an issue with Railo itself, I would be under the assumption that the create directory would use the same permissions as the folder it is going into, rather than the application creating it. But it would be interesting to see if ColdFusion has the same issue, actually it doesn’t I do that with the blogCFC importer for images in blogs.

Someone with more Railo knowledge than me might be able to answer that one.

If I understand correctly, you can create directories, but not files inside those directories?

If you’re on Linux, check the UMASK setting that the Railo user is running with. That controls what permissions new files/folders have.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thank you guys, not sure about an issue with Railo, I have another cftag-component that creates and upload images ok using uploadify, but this time using cfscript did not allow me to upload into the new created directory.
But let me check Brad’s suggestion… :slight_smile:

Thank you again

Ok, before modifying the profile in my server, I manually modify the directory with my root credentials to 777, I then logout from root and login with normal user credentials again to upload a jpeg file using FTP, image uploaded ok, but… I get an empty array using cfscript DirectoryList with absolute path.

In case you wonder: I reload Application, I reload my browser page, I say a prayer, etc
Widget loads ok (no errors), but I get an empty array from that folder :frowning:

Question, if I re-write my widget to a tag based component will it work ok in CBox?

Thanks again

So, the image is present in the folder, but directoryList() is not retrieving it? What are the permissions on the parent directory and who is the owner/group of the new file?
Can you confirm that you’re not filtering out certain file types when getting the list? I doubt your issue has anything to do with ContentBox. It doesn’t seem that tags/script would play a part either.

To remove as much from the equation, can you just create a simple .cfm test page that attempts to write and read a file?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Sure Brad, thanks for the ideas… and I’m not using any filtering, and no singleton, I’ll try outside the widget with a simple cfm as you suggest :wink:

Thanks

Ok Brad, stupid of me… I went and create check list from all of your notes and suggestions,I never use filtering, but since I didn’t pass any type of value for that parameter, my sorting value was acting as the filter value:

var listImgs = DirectoryList(abPath,false,‘name’,‘desc’);

When I replace that line using:

var listImgs = DirectoryList(abPath,false,‘name’,’’,‘desc’);

All work just fine.

Thank you Brad!!

Felipe Serrano

Ahh, tricky positional parameters! Glad it’s working now.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com