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.

Releases and Announcements

Latest news about the SilverStripe software.

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

SilverStripe 2.3.2-rc1


Reply

27 Posts   6891 Views

Avatar
Impressa

3 June 2009 at 5:33pm Community Member, 6 Posts

Hi

I have done local installation (2.3.2) on my mac as well as two servers. One of the web servers has a Javascript parse problem. As a result when creating new pages the page does not get reflected in admin unless you log out and log in again.
I've tried the stable version and it has no problems.

Multi Language Content (2.3.2)
I've encountered "Web server error" when I inserted "Object::add_extension('SiteTree', 'Translatable');" in the _config file. It occurs only on the web server installation. Local mac is ok.

I've just started using Silverstripe last week. Hope I am not too much of a trouble. :)
cheers

Attached Files
Avatar
Ingo

3 June 2009 at 5:35pm (Last edited: 3 June 2009 5:35pm), Forum Moderator, 801 Posts

The JS parse error doesn't give us any indication what the actual error is - please install getfirebug.com and post the ajax response including the requested URL :)

Avatar
Impressa

3 June 2009 at 9:17pm Community Member, 6 Posts

Hi

Below is what I could see in Firebug:

93: unterminated regular expression literal $('Form_EditForm').loadActionsFromString('<input class=\"action delete\" id=\"Form_EditForm_action_unpublish\" type=\"submit\" name=\"action_unpublish\" value=\"Unpublish\" title=\"Unpublish\" /> <input class=\"action delete\" id=\"Form_EditForm_action_delete\" type=\"submit\" name=\"action_delete\" value=\"Delete from the draft site\" title=\"Delete from the draft site\" /> <input class=\"action\" id=\"Form_EditForm_action_save\" type=\"submit\" name=\"action_save\" value=\"Save\" title=\"Save\" /> <input class=\"action\" id=\"Form_EditForm_action_publish\" type=\"submit\" name=\"action_publish\" value=\"Save and Publish\" title=\"Save and Publish\" /> '); $('Form_EditForm').loadActionsFromString('<input class=\"action delete\" id=\"Form_EditForm_action_unpublish\" type=\"submit\" name=\"action_unpublish\" value=\"Unpublish\" title=\"Unpublish\" /> <input class=\"action delete\" id=\"Form_EditForm_action_delete\" type=\"submit\" name=\"action_delete\" value=\"Delete from the draft site\" title=\"Delete from the draft site\" /> <input class=\"action\" id=\"Form_EditForm_action_save\" type=\"submit\" name=\"action_save\" value=\"Save\" title=\"Save\" /> <input class=\"action\" id=\"Form_EditForm_action_publish\" type=\"submit\" name=\"action_publish\" value=\"Save and Publish\" title=\"Save and Publish\" /> ');Behaviour.addLoader(hideLoading); $('Form_EditForm').updateStatus('Published'); $('sitetree').setNodeTitle(1, 'Home'); $('Form_EditForm').elements.StageURLSegment.value = 'http://www.sonnereis.net/v2/'; $('Form_EditForm').elements.LiveURLSegment.value = 'http://www.sonnereis.net/v2/'; $('Form_EditForm').notify('PagePublished', $('Form_EditForm').elements.ID.value); statusMessage('Published \'Home\' successfully', 'good');Behaviour.addLoader(hideLoading); <!-- www.000webhost.com Analytics Code --> <script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script> <noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript> <!-- End Of Analytics Code -->

Attached Files
Avatar
Impressa

3 June 2009 at 9:59pm Community Member, 6 Posts

Hi

I've just tested the RC on another host and it does not have a javascript problem.

Thanks Ingo.

Avatar
BIBO

18 June 2009 at 6:14am Community Member, 2 Posts

I`m still experiencing problems with /admin page in SilverStripe 2.3.2-rc4

Couldn't run query: SELECT Distinct Locale FROM SiteTree GROUP BY Locale Unknown column 'Locale' in 'field list'
Line 400 of MySQLDatabase.php

Although @slang hack helps but it seams to disable some functionality, at least i think so.

Avatar
Israel_Miranda

26 June 2009 at 5:50am (Last edited: 26 June 2009 5:58am), Community Member, 9 Posts

Hi everyone. I was updating a silverstripe site from 2.3.0 to 2.3.2 had the same problem:
Couldn't run query: SELECT Distinct Locale FROM SiteTree GROUP BY Locale Unknown column 'Locale' in 'field list'
Line 400 of MySQLDatabase.php

and it was not 2.3.2 release candidate, it happened to me with the stable tar.gz download in http://silverstripe.org/assets/downloads/SilverStripe-v2.3.2.tar.gz.

I then decided I should start using svn as I read in the forum this bug has been corrected in the 2.3.2 release, and I thought so, How ??
That's the one I am using....

So I first decided to checkout the 2.3.2 tag of every core module to make sure I was using 2.3.2 release, and voila it worked!!!

My guess is that the tar.gz in the "stable-download" url is indeed a RC, and the date is wrong too, zero hour of Unix time!!

Just checkout the 2.3.2 version from svn and you all will be good to go.

Hope it helps.

Avatar
Israel_Miranda

26 June 2009 at 5:57am Community Member, 9 Posts

Ingo, I think maybe you should take a look at this, it could save many people from having this problems.

Thank you.

Avatar
Ingo

26 June 2009 at 8:53am Forum Moderator, 801 Posts

Hm, did any of you overwrite the CMSMain/LeftAndMain templates?
I'd need a full stacktrace to debug anything, can't say I've ever seen this problem.
Please also provide details on which version you've upgraded from,
as well as the distinct upgrade steps. Particularly around when Translatable
was enabled through _config.php (before/after upgrade? before first 2.3 dev/build run?)