Bytespring CMS Released as Open Source

We've just release Bytespring CMS as an open source project. For more information and to download the source click
here. Your comments and feedback would be appreciated.

Comments

Jason,
Congrats on setting your baby free. A brave step. Hope I get a chnace to perhaps put something back into ByteSpring. It is a pretty sweet product.

Cheers Wayne. I'm hoping to see lots of new Bytespring babies popping up from now on. :)

Downloaded and installed on my server, now I cant seem to locate the default admin password to edit content..

Hi Doug, sorry I didn't mention that. You can use the login link on the homepage, but for your reference the default is username: Admin password: Password1

Just tried the demo. Get an error when trying to click the "Add Page" button.

Other than that this looks very much like the kinda lightweight cms I've been thinking about creating myself for a long time. Now I won't have to :)

I'll test it and I'll be happy to contribute any enhancements if I come up with any :)

Good work, and thank you for open sourcing it.

Trond, i haven't had any reports about any errors. Usually, any uncaught exceptions will be emailed to the site administrator. hmm .. I'll have a look and see if i can replicate the issue.

Hi Jason,

If you for some reason is not able to replicate the issue, here's the error message that I get:

- - - - -
Oops! An exception occurred in the ApplicationMessage Variable width is undefined.
Detail
Extended Info
Tag Context D:\hshome\jasonshe\demo.bytespring.com\scripts\FCKeditor\fckeditor.cfc (132)
D:\hshome\jasonshe\demo.bytespring.com\scripts\FCKeditor\fckeditor.cfc (62)
D:\hshome\jasonshe\demo.bytespring.com\views\page\dsp_EditPage.cfm (74)
D:\hshome\jasonshe\demo.bytespring.com\ModelGlue\Core\ViewRenderer.cfc (22)
D:\hshome\jasonshe\demo.bytespring.com\ModelGlue\ModelGlue.cfc (508)
D:\hshome\jasonshe\demo.bytespring.com\ModelGlue\ModelGlue.cfc (343)
D:\hshome\jasonshe\demo.bytespring.com\ModelGlue\ModelGlue.cfc (296)
D:\hshome\jasonshe\demo.bytespring.com\ModelGlue\ModelGlue.cfm (64)
D:\hshome\jasonshe\demo.bytespring.com\index.cfm (27)
- - - - -

I've already made a site ready for using Bytespring, but need to get my host to enable CreateObject() before I can really get going. They've done this for me several times in the past on other sites, so it's not a problem.

Hi Trond, thanks for that. It's actually a problem in Fck editor. I have fixed it in the source download version months ago, but the bug obviously is still sitting on the demo site...sorry about that. I was too lazy to re-upload the whole FckEditor source tree to the server again...it does take a while. I'll fix it up asap.

Hi Jason,

Coincidense is a funny thing :)
(is that even close to being spelled corectly?)

We had a discution in work today about leaving traces on the net, so I Googled my self to see what I could dig up (did not find anything bad - phew). One of the hits was to another coment to your blog, where I reported the very same error as yesterday. I really did not remember doing that when I reported it this time.

Check it out: http://www.jmpj.net/jason/index.cfm?mode=entry&entry=018A7EBA-CF1D-76B8-...

Lol, that is funny .. so you know I did fix the issue when you mentioned it previously. :)

Hi Jason,

I took the liberty of adding you to my MSN list of contacts. I've been testing the Bytespring CRM some more (on one of my own sites), and I really like what I see. I'd really like to throw ball about questions, ideas etc. Hope it's ok.

Cheers

Hi

I've just tried to install the cms onto a coldfusion 6.1 mx server. However there are a few changes that I had to make to some cfc's to make the thing work. This is mainly due to the fact the cffile doesn't support result="" in 6.1 and cfdirectory doesn't support recurse="".

Only 3 cfcs seem to be affected and if you mail me, i'll gladly mail them to you.
The problem only arrises when you first initialise the cfc's

Phil, thanks for picking that up. I'll gladly merge your changes into the next build.

Trond, I'm happy to discuss any ideas or suggestion you have, but would prefer it to be included on this blog thread for the benifit of others.

I downloaded it and installed it on my server, but I think it may be for Windows only because I'm running into a lot of case sensitivity issues. Remember guys ColdFusion runs on more than one operating system! All it takes is a little forethought to have cross platform applications.

Jason,
On my local and remote sites, the status messages are not refreshing, they seem to be appending.
So, if I hit a validation error adding a image, I can not succesfully resubmit or add content until I restart the app and log in again.

Have you seen this? I tried playing around in CFADMIN, but no changes seem to resolve the issue.

the exact issue seem to be that errMsgContent in the viewstate never clears out and the infoMsgContent list keeps appending whatever actions I do on the site.

Any thoughts?

yes, I am using windows and the version of MG provided in the install dir (couldn't get it working with MG2 ,BTW)

Jason, if you want to see it in action you can access http://expressio.us and log in using the admin and Password1 (which I will soon change :). the login link is in the lower left corner. feel free to try to make some menu edits or delete the images in the default gallery to see the 'sticky messages'. the site you see is on a windows VPS, but I am having the same exact issue locally on the dev version of MX using the built in server.

love the CMS and If i figure it out I will let you know

Hi Doug,
yeah .. i see the problem. It's really strange. I've never seen that before. If you have a look in the message controller, you'll see that the message collection is only maintained if it already exists in the current event. Also, if you re-direct internally within model glue, it will pass all of the current event values to the next requests event. I don't know if this is where the problem is, but it may give you some hints as to what's going on.

By chance did you modify any of the code in the application or have you only modified the theme. BTW .. you're theme looks great.

Thanks for looking at it for me. It seems to be my theme....I had edited the theme in the 'default' folder. when I switched the theme path back to the 'hmenu' theme, the problem dissapears. I am starting again on integrating a custom theme and may be able to determine what to avoid this time. really strange that a view would have that effect though... all i am doing is rendering the same viewstate data......

Hi Doug,
can you send me a copy of your theme so I can see what's going on? I'll email you directly to give you my email address. I really can't see how the theme could have this kind of effect.

I just tried to insall Bytespring on my Windows box running apache2.2 and cf6.1 (with several virtual servers)
As stated in the docs I can't get it running in such an environment.
In fact I cant get it running at all this being as far as I have got:
----------------------
Attribute validation error for tag file.
The tag does not have an attribute called result. The valid attribute(s) are action, charset, accept, destination, filefield, nameconflict, mode, attributes, source, file, variable, output, addnewline.

The error occurred in C:\Inetpub\wwwroot\sharkfin\model\common\appFacade.cfc: line 23
Called from C:\Inetpub\wwwroot\sharkfin\controller\msgController.cfc: line 20
Called from C:\Inetpub\wwwroot\sharkfin\ModelGlue\ModelGlue.cfc: line 85
Called from C:\Inetpub\wwwroot\sharkfin\ModelGlue\Core\XMLModelGlueLoader.cfc:
----------------------------
I will persevere as I really want this running and any hints as to how to make it run in a unique director(ies)
under cf webroot - of course with the directories being virtual servers - would be very helpful.

This would be required in a multi user box.

Hi Julian,
thans for letting me know. There have been a couple of modifications added to work around some issues with cfdirectory in cf6.1. Namely, that cfdirectoy does not support the recurse property in 6.1. I haven't tested it thoroughly in 6.1. I'll be posting an updated version over the weekend with a few other modifcations and will also have a look at the issue you described at the same time. Please let me know if you ucover the issue in the mean time.

the result tag is new in mx7, you should be able to remove the attribute and any reference to it.
also you will need to fix some case issues since you are not on windows

Ah but I am in Windows, but using apache since only that gives me virtual
servers in XP Pro on a dev box. I have even got a wildcard uri-friendly
(*.html) app going alongside asp by starting IIS, stopping it globbing
all addresses then connecting it to a Microsoft loopback adapter and then
using apache to proxy asp call to IIS. it works!!

I now want to get per-virtual server instances of Bytespring running.
The only significance of 6.1 is that I have a copy. can use 7.02
and have that running on a similar Apache box - will try it.

Hi Julian,
you can run multiple virtual server instances in apache, but the thing you need to be aware of is that you can't run Bytespring CMS in a subdirectory of your domain root .. i.e. http://virtual.server.blah/ will work http://virtual.server.blah/blah/ will not work .. This is because of the built in friendly url stub generation.

Jason,

It's http://virtual.server.blah/ that I can't get working.

I have now put it on a 702 box and it works a treat in the root
after doing a ?init-yes to build the /go dir.

Put it in a subdirectory with a virtual server pointing to it and it falls to pieces
since there are so many cf references to root relative includes and so on.

I have tried running both sets of dirs and that of course works but does
not exactly achieve what I want! To go through it and relativise all the calls
might take a while.

Please tell me I am being stupid. CF8 will have per-application mappings
but until then...

Dear Jason

The application looks for many things that are cf-root relative so in my case that is:
c:\inetpub\wwwroot
and my site root for this site is:
c:\inetpub\wwwroot\shark

For example:

In ModelGlue.cfc called from line 85 I get the error:
"Could not find the ColdFusion Component controller.msgController. "

If I add this to linr 48 of XMLModelGlueLoader.cfc I added
<cfdump var="#xCfg.xmlRoot.controllers.xmlChildren[i].xmlAttributes.type#"><cfabort>
Which gave me:
"controller.msgController "

Which the system can't find because in my case it needs "shark" added in front of controller.msgController. I have already done this in places leading to this which is how I have got this far.

I am thinking about adding a test for the url in application and using this to derive a directory name in the application.
This would perhaps take the form www.mysite.com giving /www_mysite_com cf directory or something such like.
I could then prefix all the necessary variables in the application with the directory name.

Does this sound like a plan?

Julian

PS I am aware to look in the xml config file pointed to by that dump.
Maybe most things are there. It's just the general concept of deploying a site
by just copying it to www_dir_co_nz (that tells you where I am) and it will go from there with the appropriate host header.

Julian

Jason,

I am! While my apache confisg is not like yours it has several entries for different adapters,
the key one being localhost in this case:

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
ServerName 127.0.0.1
DocumentRoot "C:/Inetpub/wwwroot/"
DirectoryIndex index.html index.cfm
</VirtualHost>

<VirtualHost 127.0.0.1>
ServerName sharkfin
DocumentRoot "C:/Inetpub/wwwroot/sharkfin/"
DirectoryIndex index.html index.cfm
</VirtualHost>

Simple and to the point. No /cfide since that is in the basic server root anyway. I have cut out some other virtuals,
but I have the catchall one and the sharkfin one. It works as sharkfin with the appropriate hosts entry. Looking at it, it's bound
to fail when the cf root is different from the server root.

I will fix this if you wish and submit it back to you. I want to get to the stage where I can deploy by just copying a site to a new dir,
put it in httpd.conf and dns and go. Have you actually tried running it out of such a setup?

Best Wishes

Julian

Dear Jason

The problem I am princiapally having is how to find the cfcs. (see http://livedocs.adobe.com/coldfusion/6.1/htmldocs/buildi12.htm) ,
I have tried adding my subdirectory as a mapped path for cfc search. It does not work, but would be flawed anyway,
if I have more than one site.

In constants.xml.cfm I have to rename it to "sharkfin.config.beans.constants" for it to be found later and references to the cfc in the constructors have to be changed to
type=sharkfin.config.beans.constants - it won't accept a variable there either. This is everywhere and is beyond reasonable scope.

I have tried this in 701 and 6.1(6.1 of course will be flawed anyway in file as you have said), both of them standalone installs (not /JRun) If you have this working then I have something desperately wrong, but what?

Yours

Julian

Jason, I guess this is the proper place to ask question not covered in the FAQ doc:)

is there any rhyme or reason to the order of the images in the gallery module? or way to reorder?

if not I may take a stab at adding that functionality and contributing the code.....

thx,
Doug

News Feed

Recent comments

love it, tag/watch, [url="http://mediastop.info/...
rdnheczuftqsjoh, Compare chart electronic...
We're pretty much trying things to see what works...
Still going. I try to keep it agile, but I wouldn...
Yes, the mythical PO, what process are you using...