silverstripe/graphql v4 needs write access to this directory, so it may
be easier for some developers to have the directory there as soon as
they `composer create_project silverstripe/installer`.
Like `.graphql-generated`, best practice is to not commit this directory
to VCS, and instead let it be filled at deploy time.
This directory will be required for all new projects (unless explicitly
opting out of graphql v4) - having this directory by default makes it
easier to set more sane permissions (i.e. not requiring the entire
project root to be writable).
As of Composer 2.2.0, there is a new configuration property to whitelist plugins which are allowed to run. According to https://getcomposer.org/doc/06-config.md#allow-plugins this will default to disallow all plugins from July 2022.
When running a dev/build for the first time, environment should be set to 'dev' or it won't run.
Setting this in the example gives guidance to someone building a site for the first time (or if it's been ages!)
This conflicts with an earlier commit (cfba4cb), but after talking to Robbie this new commit is consistent with how we handle other recipes (CWP and core). Both ways are viable, but we've implicitly standardised on this way (set minor release constraints in the main release branch, e.g. constraint to recipe:4.5.x-dev on installer:4.x-dev)
Likely caused by repeated unreviewed merges from 4.4 (and 4.3) onto the 4 branch here (e.g. through fa67bc614b).
Note this isn't changing the branch alias, which should still point to 4.5.x-dev here.
Add Security Advisories as dev requirement to
- Prevent installation of known breached libraries
- Give devs the option to remove it if they might want to
Most of the modules stop exporting metadata files (behat.yml among those) to packagist
Thus when travis runs behat tests it cannot find configuration for the test suites
Uploading files directly through the Files LeftAndMain drops them directly into the assets folder by default. This will help prevent those files accidentally ending up in git.
Removes main.php reliance. Paves the way for
serving SilverStripe from a public/ subfolder in the base path.
This requires an index.php file in the webroot,
since you can't set a RewriteRule to a path outside of the webroot
(e.g. "public/.htaccess" pointing to "../vendor/silverstripe/framework/main.php").
The “export” downloads of the installer should include these two files
as they are of use to regular developers.
* .editorconfig encourages the use of our standard code format
* .env.example is a helper for new developers
If you're running mod_dir on Apache, and create a route which matches a directory name
(such as 'framework'), "GET /framework" will result in a 301 to "/framework/?url=framework".
While the SilverStripe routing might decide to enforce trailing slash rules later,
Apache shouldn't have any business here.
The specific bug this fixes was redirecting "/graphql" to "/graphql/",
with the silverstripe/graphql module installed.
See https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryslash
This is required here in order for the "cow" release tool
to include the module in tagging releases.
At the moment, it's only an indirect asset-admin dependency,
but will become a framework dependency once we switch
CampaignAdmin to use GraphQL as well.
Although the original ticket recommended increasing our
minimum-stability, this change gives us the best of both worlds.
- Where stable packages are available and meet the requirements, they
will be used.
- Where stable packages aren’t available or they don’t meet the
dependency requirements, non-stable packages are still allowed.
As part of this I have also tightened up the silverstripe-themes req
version, as “*” is an anti-pattern. The versioning of the theme has
rightly split off from the versioning of the framework; it looks like
3.1.* is what we should expect.
Arguably, we could set the dependency to ~3.1, but in this case I think
it’s fine to be conservative.
The instructions in the init() function seem to be at odds with the current documentation which suggests that it is preferable to include requirements in PHP code rather than in templates.
Also the requirement calls here are supposedly included so that older themes still work - but how old are we talking? I would assume that these older themes would not be compatible with SS3.1, and the bundled Simple theme does not need these requirement calls in the init() function, making them redundant.
I am guessing that the Installer is primarily used by people just getting started with SilverStripe, so ideally this bundled example Page.php should provide a clear pathway to best practice SS development, rather than supporting out-dated code.
They should be hidden in CI, but its more of a cleanliness
activity, while snippets are a great time saver for devs
that they shouldn't need to go hunting for via CLI params.
Now that https://github.com/composer/composer/pull/1883 is in Composer, self.version
will work as a requirement for framework & cms. This will simplify the release
process a great deal.
Partially reverts e9f13512dc
This caused two issues in Travis builds:
* CMS builds were using
outdated framework dependencies. Example: https://travis-ci.org/silverstripe/silverstripe-cms/jobs/7718686
* Modules weren't building
at all because the info in the lock file overwrote the custom
composer.json. Example: https://travis-ci.org/silverstripe/silverstripe-translatable/jobs/7726954
In addition, I don't agree with having lock files on release branches
(as opposed to tags), since it forces us to permantently update lock
files or work with stale dependencies even when on branches
(most likely not the developers intention).
Now that Composer has been fixed, self.version can be used as a dependency for framework
and cms in installer. This simplifies our composer.json, and meanst that we can commit
composer.lock into the repo, as required. An annoying piece of our release process has
been solved!
With this change, composer will automatically call dev/build after an update or install
command. The main reason that this is 3.1-only is that previous releases would have
necessitated the use of 'sudo -u www-data', which is too environment-specific.
One thing that this may cause problems with is 'composer create-project' in an environment
without a _ss_environment file. It will call dev/build, and dev/build will throw an
error. That should be fixed in a subsequent commit.
Now that https://github.com/composer/composer/pull/1883 is in Composer, self.version
will work as a requirement for framework & cms. This will simplify the release
process a great deal.
Ultimately, the release of rc1 will be the place to test that, but it seems appropriate
to get this in there for that.
If it succeeds with 3.1-rc1, I'd suggest we backport to 3.0 and 2.4.
Any "composer require <module>" call will first call
a "composer update". This *automatically* includes dev requirements,
without providing a way to turn off this behaviour.
A workaround would be "composer require --no-update <module> && composer update --no-dev <module>",
but that drastically reduces the usefulness of the command
for our target audience (moderately technical devs).
In the end, the small faction of devs needing the dev dependencies
also know how to install them on their own. And having a local phpunit
build actually gets in the way more than it helps in case you have
it installed through PEAR already (can get really weird when using the
PEAR provided "phpunit" binary, but the autoloader finds the composer managed classes).
They can expose version information, so shouldn't be accessible
through the web. The better solution of course is to move
to a public/ subfolder application structure.
This is useful for keeping standard "composer create-project"
checkouts clean. Unless they use "--keep-vcs", in which case
.gitattributes is (correctly) ignored.
This has the side effect that archive-checkouts can't
run phing or phpunit scripts, but I think that's
acceptable.
They used to require manual editing of the composer.json
file in order to do a proper dev checkout. In the end,
the choice between release tag and dev branch should
be handled by composer already via the --stability flag.
Due to git limitations, we can't check out the blackcandy
"parent" theme into themes/blackcandy/ directly, since that
would require sharing paths with git repositories of other themes.
When using create-project, self.version doesnt work - the checkout looses the reference to the version
Fix by explicity referencing the version instead
Wasn't detecting composite keys (separated by dots)
properly in temporary YML conversion, so messed up the
YML structure, effectively "hiding" and rearranging
translations values within the wrong keys.
translations-sync was failing after calling i18nTextCollector because it
wasnt specifying a module. This mean that running translations-update-git-masterfile for framework
it would then fail on cms because wed already created a cms/lang/en.yml file
This is a one-off merge in the direction master->3.0,
to ensure all bugfixes since we branched off find
their way into the next micro/minor release.
From now on, we'll commit to the latest release branch,
and merge back to master. API changes should go into
the master branch (not merged into a release branch).
Would be better handled by an explicity "clear manifest" task,
but that's the best we can do for now. Necessary because
of removed 'flush' setting from bootstrap.php, see
https://github.com/silverstripe/sapphire/pull/620
Squashed commits (sorry, too hard to untangle):
- Moved descriptions from custom "phing help" target
to the more standard 'phing -l' command, which keeps
the descriptions in one place, rather than duplicating
them between xml comments, "description" attrs and the "help" target.
- Prefixed helper targets to make it clear that they're internal
(= require temporary properties to work)
This fixes:
- git would complain when doing git checkout {branch name} when already on {branch name}
- the current branch was not calculated correctly
- removed unused variable
MINOR Fixed missing end to anchor tag
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@112972 467b73ca-7a2a-4603-9d3b-597d59a354a9
BUGFIX Database version check failures are now a warning, so a user can install at their own risk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@104793 467b73ca-7a2a-4603-9d3b-597d59a354a9
MINOR Reordered 'make getallmodules' alphabetically in Makefile
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@103746 467b73ca-7a2a-4603-9d3b-597d59a354a9
MINOR Tidied up installer, removing unused methods and clearly defining the web server support
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@100553 467b73ca-7a2a-4603-9d3b-597d59a354a9
ENHANCEMENT Error messages for database AND admin configuration are now in the same place at the top of the installer
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@99841 467b73ca-7a2a-4603-9d3b-597d59a354a9
API CHANGE: Reduced number of files needed for installer to work, and moved some into sapphire directory. (from r66896) (from r92227)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@92269 467b73ca-7a2a-4603-9d3b-597d59a354a9
MINOR Fixed broken wiki links (#4672)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@90886 467b73ca-7a2a-4603-9d3b-597d59a354a9
BUGFIX Database version check failures are now a warning, so a user can install at their own risk (from r104793)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112389 467b73ca-7a2a-4603-9d3b-597d59a354a9
MINOR Tidied up installer, removing unused methods and clearly defining the web server support (from r100553)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112185 467b73ca-7a2a-4603-9d3b-597d59a354a9
ENHANCEMENT Error messages for database AND admin configuration are now in the same place at the top of the installer (from r99841)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112182 467b73ca-7a2a-4603-9d3b-597d59a354a9
API CHANGE: Reduced number of files needed for installer to work, and moved some into sapphire directory. (from r66896)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@92227 467b73ca-7a2a-4603-9d3b-597d59a354a9
BUGFIX: Fix behaviour of FILE_TO_URL_MAPPING on Windows.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@80131 467b73ca-7a2a-4603-9d3b-597d59a354a9
A full list of module versions included in CMS Recipe {{version}} is provided below. We recommend referencing recipes in your dependencies, rather than individual modules, to simplify version tracking. See [Recipes](/getting_started/).
<details>
<summary>Included module versions</summary>
| Module | Version |
| ------ | ------- |
| silverstripe/admin | x.x.x |
| silverstripe/asset-admin | x.x.x |
| silverstripe/assets | x.x.x |
| silverstripe/campaign-admin | x.x.x |
| silverstripe/cms | x.x.x |
| silverstripe/config | x.x.x |
| silverstripe/errorpage | x.x.x |
| silverstripe/framework | x.x.x |
| silverstripe/graphql | x.x.x |
| silverstripe/login-forms | x.x.x |
| silverstripe/mimevalidator | x.x.x |
| silverstripe/reports | x.x.x |
| silverstripe/siteconfig | x.x.x |
| silverstripe/versioned | x.x.x |
| silverstripe/versioned-admin | x.x.x |
</details>
{%ifversion.stability=='rc'%}
## Release Candidate
This version of Silverstripe CMS is a **release candidate** for an upcoming stable version, and should not be applied to production websites. We encourage developers to test this version in development / testing environments and [report any issues they encounter via GitHub](/contributing/issues_and_bugs/).
{%elseifversion.stable%}
Upgrading to Recipe {{version}} is recommended for all sites. This upgrade can be carried out by any development team familiar with Silverstripe.
## Security considerations
This release includes security fixes. Please see the release announcements for more detailed
descriptions of each. We highly encourage upgrading your project to include the latest security patches nonetheless.
We have provided a high-level severity rating of the vulnerabilities below based on the CVSS score, however please note this could vary based on the specifics of each project. You can [read the severity rating definitions in the Silverstripe CMS release process](/contributing/release_process/#severity-rating).
Any open source product is only as good as the community behind it. You can participate by sharing code, ideas, or simply helping others. No matter what your skill level is, every contribution counts. See our [high level contribution overview](http://silverstripe.org/contributing-to-silverstripe) on silverstripe.org on how you can help out.
## Bugtracker ##
Bugs are tracked on [github.com](https://github.com/silverstripe/framework/issues).
For submitting patches, please read our [guide to contributing code](http://doc.silverstripe.org/framework/en/misc/contributing/code). We only accept pull requests on github.com.
**IMPORTANT: By supplying code to the SilverStripe core team in patches, tickets and pull requests, you agree to assign copyright of that code to SilverStripe Limited, on the condition that SilverStripe Limited releases that code under the BSD license.**
We ask for this so that the ownership in the license is clear and unambiguous, and so that community involvement doesn't stop us from being able to continue supporting these projects. By releasing this code under a permissive license, this copyright assignment won't prevent you from using the code in any way you see fit.
- Added Makefile so that you can execute 'make test' in sapphire
- Added SS_DEFAULT_ADMIN_USERNAME/PASSWORD defines to conf/ConfigureFromEnv.php
- Added missing ChangePasswordEmail.ss
- main.php: Moved _ss_environment.php include to very top
- ArrayLib
- Added in_array_recursive() for recursively checking an array with nested arrays
- Controller
- Improved allowed_actions support for subclassed controllers, such as CMSMain extends LeftAndMain
- Allow use of on controller extensions
- DataObject
- Added hasDatabaseField()
- DataObjectSet
- Implemented equal values
- Date
- Added TimeDiffIn()
- Email
- Changed email encoding from iso-8859-15 to utf-8, in compliance with other parts of SilverStripe and IMC recommendations
- ErrorPage
- Added all the types of error pages (ErrorPage.400,401,403 - 417,500 - 505)
- File
- Updated AssetAdmin to use TreeTitle() in place of Title for tree generation
- Updated TreeTitle() to allow use of alternateTreeTitle() in decorator
- Updated File to allow the insertion of extra columns by decorator
- FileUploadField
- Added ability to customise which folder a file is uploaded to
- Folder
- Moved folder admin form to Folder::getCMSFields() to let you more easily manipulate the form with a decorator
- Form
- Added added setFields()/setActions()
- Group
- Added canEdit(), which can be used to filter the SecurityAdmin group list
- HTMLEditorField
- Added paste plain text and paste from word buttons
- Added 'anchor' option to link inserter
- Image
- adding "delete" class to DeleteImageForm()
- Member
- Added $notify_password_change - now sends an email to the member
- Added BaseHref() to Member_ChangePasswordEmail so that the email shows the domain name of the current subsite
- Added Member->SetPassword, a field that lets you have a write-only password field
- Used Member->SetPassword to create a password column on the MemberTableField for SecurityAdmin
- Send 'changed password' emails when a user is first created as well as edited
- Added $searchable_fields in preparation for a more generic search implementation, currently limited to Member.php and MemberTableField.php
- RSSFeed
- Make RSS feed work with objects that don't support AbsoluteLink, such as the forum
- Security
- Added support for password and old_password encryption mechanisms if you're using MySQL
- SiteTree
- Made breadcrumbs delimiter configurable
- Added simple to-do list facility
- Don't let people create a page name that is the same as a class name
- Moved CMS page-disabled logic into SiteTree::CMSTreeClasses(), so that it can be more easily customised for specific sites
- Versioned
- Added database indexes for AuthorID and PublisherID
- ViewableData
- Added $SecurityID for templates
- Added escapeTypeForField() to determine if the record-field needs escaping (currently only 'xml' supported)
- Added title attributes to the SilverStripeNavigator messages
- Added $casting for BaseHref()
Bug Fixes
- Sapphire
- Better handling of memory limit
- Fix locale files on Windows
- More solid ID-detection in Member::php()
- ComplexTableField:
- added $popupClass to avoid duplication, getting basedataclass for existing children in DetailForm() (in case we're dealing with different subclasses)
- fixed getParentIdName() call in DetailForm() - paramter-order was wrong
- better checking in saveComplexTableField() to avoid PHP-notice
- Fix title and description in RSS feeds
- Fix interface translations in CMS footer
- DataObject:
- fix for quering database for child elements when it hasnt been serialized
- Remove HAVING clause from methods where it doesn't make sense to have them
- Fix caching in DataObject::get_one()
- Take orderby clause into account when caching in DataObject::get_one()
- Removes having clause as it can't be used
- Fixed DataObjectSet::insertFirst() - it now uses a numeric key rather than null
- TestRunner: Ensured that the autoloader pulls in the test class
- Database::createDatabase() shouldn't need any arguments. Fixed this in the core class and MySQLDatabase
- Debug: Fix stack trace on objects that don't extend the Object class
- HasManyComplexTableField: set $template and $itemClass to public (according to parent implementation) and fixed formatting
- Email: Fix attachments that could not be emailed from mac or windows systems
- Use lighter version of browscap.ini
- Added ArrayLib::is_associative()
- Allowing object-parameters in DataObjectSet and ArrayData, added ArrayData::object_to_array()
- Allow insertion of <img> tags that refer to external domains and add alt= to any images that don't have alt tags
- Show the saved value of EditableEmailField.SendCopy
- ManifestBuilder: Fix building manifest before database is created
- HTMLText.Summary: Don't close img and br tags
- Don't fail in i18n::include_by_class if the module isn't translatable
- Database: When removing a value from an enum, set affected rows back to the default
- Fix DataObjectSet constructor breaking with associative arrays
- Make ContentNegotiator send XHTML to the W3C validator
- Image: Fix attaching an existing folder to an ImageField
- TableField:
- when no source items found, the table should still show and it should works as adding new records
- renamed $wantDefaultAddRow to $showAddRow
- Form: removed Form::dropDatalessFields()
- Refactored Member::session_regenerate_id to make it easier to disable in some circumstances.
- Deprecated use of DBField 'Text' for saving HTML-Content (added check in HTMLEditorField->saveInto())
- Make Security::get_encryption_algorithms() a dynamic function again.
- Fix sorting in complextablefield
- Added sapphire/conf/ConfigureFromEnv.php for making use of _ss_environment.php
- SelectionGroup: Fix for bug that initialises with preloaded selected items with right hide/show
- Fixed fatal error due to browscap.ini capitalisation error
- Allow many-many complex table fields to be used on the reverse side of the join (belongs many many)
- Fix incorrect text boxes on many-many complex table fields and relational complex table fields being set on an ajax request
- BasicAuth: Fixed illegal reference to this
- Image: locking down URLs: image/iframe, image/flush, image/transferlegacycontent
- RelationComplexTableField: fixed "object not found" error in ie6
- ImageField: compressed layout to fit in CTF-popup (removed "click here to remove" label), removed iframe-borders for IE
- RelationComplexTableField: added check if sitetree exists otherwise IE broken with all genericDataAdmin panel
- ComplexTableField: updating form in ctf-popup after saving (including validation-errors and fields that have may changed on the serverside, e.g. ImageField?)
- fix PageView's recording of referrers.
- File: fix upload folder
- Fixed seamonkey browser recognition in browscap.ini
- ComplexTableField: fix sql error on comments section
- fixed i18n::get_owner_module() calls on classes with _s
- Fixed ManifestBuilder execution in restrictive openbasedir environments
- Removed clone behaviour from Form::Fields()
- Object: Added object caching methods
- Make DataObject::write() call the recursive write on components, even when the dataobject itself hasn't changed
- fix ComplexTableField caching
- ManifestBuilder regex
- Debug: Supress disabled errors on live site
- Allowed subclasses in ComponentSet::add/remove
- added extra security on Controller ( checkAccessAction() )
- Member: Used Object::create() to create email instances sent by the system.
- Object, Versioned, Hierarchy: Allow selection of folder when inserting files / images
- AjaxUniqueTextField: fixed sql-injection
- TableField: Removed use of deprecated TableField::setExtraClass()
- Group: Removed warning in group admin
- DataObject: fixed caching in getManyManyComponents
- DataObject: Fixed MySQL 4.1 support for situations where we are sorting by a group aggregation function and fixed notice level error
- Fixed bug with BasicAuth enabled on an old database, it was preventing you from visiting db/build
- DataObject: Fixed 4.1-sort-by-group-aggregate query rewriter for sort functions containing columns, eg, ORDER BY if(A,B,C), X
- Director: Small fix for session bugs on Lightspeed server
- DataObjectSets: cannot be iterated over multiple times concurrently
- fix to Installer: falsely claims modrewrite fails (mamp)
- Widget: fixed widget editor
- ComplexTableField: Fixed double-escaping of CTF popup page-navigation links
- ComponentSet: fixing bug with in-memory child objects not having their parent ID field updated via the ->add() method
- ComplexTableField: BUGFIX properly setting $childID in form for newly created items to avoid duplicates after subsequent saving (the form reloaded without the ID connection)
- TableListField: fixed csv export in MemberTableField by checking for valid database columns when building SELECT statement
- ComplexTableField: fix popup breaking after saving
- CMS
- cmsmain_left: You can't reorganise pages without creating pages
- MemberTableField: Patch for more i18n strings
- Fix i18n errors
- UserDefinedForm: Fixed notice level error
- Bug in PageComments class (Security)
- Fix autocompletion in Security Admin
- Fixed the $hide_ancestor static on SiteTree? subclasses
- Fixed bug: Page class wasn't shown in add-page dropdown
- More memory-efficient version of admin/publishall
- tinymce.template: Added paste plain text and paste from word buttons to the HtmlEditorField in the CMS
- SideReport: fixed bug in todo list report
- Fixed 404 on spacer.gif
- Fixed context menus in CMS
- CMSMain: Added 'duplicate page and children' context-item in addition to 'duplicate just this page'
- GenericDataAdmin: Recover ExportForm for genericDataAdmin Which is needed for CRM CreateCommunication
- Added default SubscribeForm.ss
- Added SubscribeSubmission template to get subscribeforms to work
- SubscribeForm: Fix newsletter subscription form
- AssetAdmin: Disabled unused files list, as it uses way too much memory
- CMSMain->getNewItem now calls $this->extend('augmentNewSiteTreeItem', $newItem);
- Changed call to ViewableData::castingHelperPair to fix sort not being set by getNewItem
- Used Member->SetPassword? to create a password column on the MemberTableField? for SecurityAdmin?
- Send 'changed password' emails when a user is first created as well as edited
- Updated core to allow for subsites restriction of filesystem: Folder::getCMSFields() is now responsible for generating the folder form.
- Folder::syncChildren() now exclusively uses DB::query() calls instead of DataObject::get().
- CMSMain: Fixed CMS bottom-navigation after publish, when using the subsites module (or other alternateAbsoluteLink implementors)
- SideReport: Fixed newlines in to-do report
- Javascript
- Improved the Behaviour.addLoader() method to play more nicely with tools
- tree.js: Fix bug when duplicating pages with reorganise enabled
- tiny_mce_improvements.js: Improvement to link-insertion logic when selecting text that doesn't have a link
- tiny_mce_improvements.js: Fixed default-setting for link anchor
2.2.1 (21 Dec 2007)
New Features
- Translations
- Added Italian translation
- Added Russian translation
- Added Slovak translation
- Added Turkish translation
- Added Bulgarian translation
- Added Czech translation
- Added Hungarian translation
- Added Portuguese (Brazil) translation
- Added Swedish translation
- Added Chinese (Taiwan) translation
- Added support for sapphire to Portuguese (Portugal) translation
Developer Tools
- Added augmentDefaultRecords(), so DataObjectDecorators can extend requireDefaultRecords
Bug fixes
- Sapphire
- Hardcoded array of encryption algorithims in Security::get_encryption_algorithms(), as a bug in MySQL causes corruption in dumps with enums with commas
- Fixed bug with google sitemap on translated sites
- Removed title from SecurityID fields, as some forms show labels on HiddenFields
- Fixed Object::uninherited() for PHP 5.1.2
- Added empty array to member so that roles can add their own has_one relations
- CMS
- Added SecurityAdmin_rightbottom.ss
- Javascript
- Upgraded TinyMCE to 2.1.3
2.2.0 (28 Nov 2007)
New Features
- New look for CMS
- Support for authentification by OpenID (auth_openid module included with installer)
- Google Sitemaps support
- Internationalisation support
- German translation
- Dutch translation
- Chinese (simplified) translation
- Spanish translation
- French translation
- Croatian translation
- Polish translation
- Portuguese (Portugal) translation
- Support for multilingual content
- Added a Statistics area showing the following reports
- Page views
- User activity
- Trends
- Operating Systems
- Browsers
- Added an image editor, allowing a user to rotate, crop and resize an image from within the CMS
- Added profile popup in CMS
- Added a 'Sent Status Report' tab to Newsletters with the following reports
- Sending to the following recipients failed
- Sending to the following recipients bounced
- The newsletter has never been sent to following subscribers
- Sending to the following recipients was successful
- Sending to the following recipients did not occur because they are blackListed
- Add 'Send to only people not previously sent to' option for sending newsletters
- Added SWFUpload library as default method of uploading files
- Added photo upload in from the Site Content section
- Added the ability to search the Site Content tree
- Added the ability to publish selected pages
- Added a list of unused assets in the Files & Images section, and the ability to delete unused thumbnails
- Usability improvements
- Move action buttons to bottom right of screen
- Moved insert image/flash/link to pane on right
- Removed right frame headers as the buttons have been moved and they only contain redundant information
- Use a javascript dialog box for confirming unsaved changes instead of the slow loading model one
- Reworked the tabs in the Newsletter section to be less confusing
- Cancel button added to Send Newsletter window
- External logo link opens in a new window
- Left sections in Site Content 'Site Tree', 'History' and 'Reports' now use expandable sections rather than tabs
- Relabeled 'Site Tree' to 'Site Content & Structure', 'History' to 'Page Version History' and 'Reports' to 'Site Reports' in left sections of Site Content
- Relabeled 'Files & Images' left frame to 'Folders'
- Added tooltips to site content tree, showing the page type
- In the 'Page Version History', use a checkbox lable 'Compare mode (click 2 below)' instead of a dropdown
- Renamed 'Save draft' button to 'Save'
- The 'Save' button text changes to 'Saving...', and the 'Publish' button text changes to 'Publishing...' when they are clicked
- Added save indicator to all 'Save' buttons, the 'Save & Publish' button and the 'Unpublish' button while they are being submitted
- Added a go button to the 'Site Reports' dropdown
- Relabeled 'Name' field to 'Folder Name' in Files & Images section
- Renamed the 'Save' button to 'Save folder name' in Files & Images section
- Relabeled 'Send newsletters from' field to 'From email address' in Newsletter section
- Removed the 'Move Files' button from Files & Images section, implemented multi-file drag & drop moving
- Add 'Newsletter Settings' tab to Newsletter type edit form for consistency with other forms
- Make the status message shown after sending a newsletter always include the # of emails sent
- Added delete confirmation for items in Newsletter left tree
- Added delete confirmation for items in Security left tree
- Make 'Add new draft' the default action for 'Create...' in the Newsletter section
- Replace the 'reorganise' button with 'Allowing drag & drog reordering' checkbox
- Delete and Unpublish buttons turn red on hover
- Added the ability to align images 'left on their own'
- Refactored part of Field() into HTMLField() so it can be used in PopupDateTimeField
- ComplexTableField
- Improved pagination in popup
- Better transformation of save-button (replaced indicator with "saving..." label)
- CompositeField
- Added SmallFieldHolder() to properly render fields in a FieldGroup
- Added insertBeforeRecursive()
- Allow empty children
- Added Field()
- Added linebreaks for HTML
- ConfirmedFormAction
- Respect $extraClass
- ContentController
- Save statistics on page views
- Added LangAttributes(), for use in XML header
- Draft/Archived content can only be viewed by users with permission to access the CMS
- Core
- Added _t() for internationalisation
- Check if TEMP_FOLDER is already defined before defining it, allowing the user to set the temporary folder themself
- DataObject
- Added merge()
- Director
- Added extend_site(), which allows modules to register a function that will be run on every page load
- redirectBack() now redirects to the base URL if neither the referrer nor the _REDIRECT_BACK_URL is set
- Added support for translatable URLs
- Added is_cli()
- Added set_status_code() and get_status_code()
- Email
- Define 'EMAIL_BOUNCEHANDLER_KEY' in sapphire/_config.php and require its value to be sent as 'Key' $_GET var in pings to /Email_BounceHandler to prevent fake email bounce pings
- Display an error on duplicate bounce logs instead of a blank screen
- If the contents of the X-SilverStripeMessageID header is sent to /Email_BounceHandler in the 'SilverStripeMessageID' _GET variable, then it will be logged in the Newsletter_SentRecipient table so that the bounce report will show up on the 'Sent Status Report' tab of the Newsletter
- Bounced newsletter recipient emails and blacklisted by default
- FieldSet
- Added insertBeforeRecursive()
- FileSystem
- Added $file_create_mask and $folder_create_mask, which are used whenever creating new files/folders in sapphire
- Form
- All Forms now have a hidden SecurityID field to prevent CSRF attacks
- Added disableSecurityToken() to disable the SecurityID field
- Added securityTokenEnabled()
- Changed <p class="Actions"> to <div class="Actions">
- Renamed PureName() to Name()
- GD
- Added rotate()
- Added rotatePixelByPixel(), allowing rotation where the imagerotate function is unavailable
- Added crop()
- Added getWidth()
- Added getHeight()
- Hierachy
- Versioned now automatically add suffixes, so Hierachy no longer needs to
- HTTP
- Added register_modification_timestamp()
- Added register_etag()
- ImageField
- Improved layout
- Int
- Added support for default value
- ManifestBuilder
- Refactored getClassManifest() for clearer ignore rules
- Ignore i18n language files
- Ignore folders that have a '_manifest_exclude' file
- Member
- Automatically login user if the 'remember login' cookie is set
- Added createNewPassword(), which generates a random password, optionally using a word list
- Added support for password encryption
- Added Locale field to store user preferred language
- Added the ability for Member decorators to augment MemberFormFields()
- MemberLoginForm (refactored from old LoginForm)
- Save the email address in the session to reuse when the login fails
- ModelAsController
- Added support for translatable URLs
- Object
- Added require_developer_login(), which allows you to check if the user has permission to use URL debugging tools
- ?debugmethods=1 now requires developer login
- PageComment
- Added the ability to have BBCode in comments (disabled by default)
- PasswordField
- Always show five stars in performReadonlyTransformation(), so it is impossible to use the information of the password length for brute-force attacks
- Permission
- Added declare_permissions()
- Added get_declared_permissions_list()
- Added traverse_declared_permissions()
- Added Permission_Group class, used to group permissions together for showing on an interface
- Added $admin_implies_all, if this is false then the 'ADMIN' permission doesn't imply all permissions
- Refactored Permission::checkMember(), should be faster now because the non-strict checking is now only executed if the user doesn't has the permission
- Added deny(), giving the ability to define 'deny permissions'
- RecipientImportField
- Added default 'GenericEmail.ss' template
- RestfulService
- Added caching
- RSSFeed
- Added support for conditional GETs
- Security
- Added support for password encryption
- Added set_word_list() and get_word_list(), to set the location of the word list used in Member::generateNewPassword()
- Session
- Added save(), which copies the current controllers session to $_SESSION
- SiteTree
- Changed references to 'stage site' to 'draft site' in TreeTitle()
- Use Translatable interface by default
- Add content language in MetaTags()
- Add delete class to unpublish and rollback buttons
- SSViewer
- Added support for internationalisation in templates, using <% _t() %>
- Added $Iteration in templates, which keeps track of the number of iterations in a control block
- TableListField
- Prevent onclick event in td.markingcheckbox from showing the popup
- TabSet
- Remove tabset div to reduce wasted space on tabs
- Added insertBeforeRecursive()
- ToggleCompositeField
- Refactored from TogglePanel
- Added icons and used 'cursor: pointer' to make it obvious that it is clickable
- Versioned
- Added the ability to versionise suffixed tables that have names that are not DataObject descendants
- Added canBeVersioned()
- Added extendWithSuffix()
- Added hasVersionField()
Bug Fixes
- Sapphire
- E_NOTICE fixes
- Fixed incorrect deprecated message in Convert::raw2xml()
- Don't show and error message and quit the script when @ is used to suppress the error
- Changed width of HTMLEditorFields to prevent horizontal scrollbars in IE7
- Added checks in DataObjectSet::First() and DataObjectSet::Last() to prevent errors on an empty $items array
- Fixed incorrect treatment of Member::logout() as a static method in Security::logout()
- Ensure Priority is set in SiteTree::onBeforeWrite(), otherwise an invalid SQL statement will be generated when the page is published
- Only highlight broken links in HTMLEditorFields once, to prevent execution timeouts when there are lots of identical broken links
- Fixed bug "Fatal error: Access to undeclared static property: Controller::$db in ../sapphire/core/Object.php(282) : eval()'d code on line 1"
- Fixed DataObjectDecorators not supporting indexes and defaults
- Fixed ReportField generating invalid HTML
- In Member::setBlacklistedEmail() call this->write() so that the BlacklistedEmail field state will be saved to the Member database table
- Fix Email_BlackList::isBlocked() to check the BlockedEmail field instead of non-existant Email field so that it will actaully return true when an email is blocked
- Fix layout problems with search box in IE by only generating a label tag if TItle is set in FormField::FieldHolder()
- Fixed Permission::check() not p[assing $strict to Permission::checkMember()
- Fixed HTTP::gmt_date()
- Fix validation of Member extensions
- Removed DriversLicense references from LoginForm (project specific clutter)
- Added check for existence of #sitetree in RelationComplexTableField.js
- Fixed VirtualPage creation
- Fixed lighttpd flushing bug
- Fixed CustomRequiredFields
- Fix bugs with ComplexTableField when it is used outside of the CMS
- Fixed error saving when value is undefined in HasOneComplexTableField and HasManyComplexTableField
- Fixed saving error in FileIFrameField
- Added a security fix for Security::check_default_admin()
- Fixed caching in DataObject::getManyManyComponents() to take into account different SQL parameters
- Geop::ip2country() now throws an E_USER_NOTICE instead of an error when it cannot run geoiplookup
- Added if() check around a foreach loop that was causing errors when there were no entries in an RSS feed
- Fix inheritance in ManyManyComplexTableField
- Fixed FormField::setRightTitle() not showing because of a typo
- Create assets folder if doesn't eixts on ErrorPage publish
- Fixed submission of ImageField when no file was selected
- Catch errors in ContentController::deleteinstallfiles()
- Fix generation of group codes on creation of a Group
- Fix title on LabelledLiteralField
- Fix ImageField deleting the Image instead of unlinking it from the page
- Set TimeField value to null when a bad value is passed
- Don't return a span when the Title doesn't exist in DropdownField
- Fix bug where NumericField couldn't have 0 as a default value
- Call Page_Controller->init() when rendering Security/changepassword etc to respect any Requirements called in there
- Fixed an error when a CheckboxSetField is submitted with no checkboxes ticked
- Fixed exporting of TableListField to use commas for CSV files
- ?previewwrite no longer works on live sites
- Fixed incorrect CSS in TableListField.css
- Fixed incorrect namespacing in TableListField::BaseLink()
- If a CreditCardField is completely blank, then it's not invalid. Required-fields should be used to check for values.
- CMS
- E_NOTICE fixes
- New pages are created in the database straight away, which solves a number of issues
- Fixed Email link not working in page history
- Unsaved changes detection now works in Security section member tables
- Fix typo in LeftAndMain::addTreeNodeJS() by renaming 'select' parameter to 'selected' because 'selected' is what is used in the method body
- Delete image thumbnails after deleting an image
- Use 'html>body' instead of just 'html>' so that #sitetree correctly gets assigned width:auto on Mozilla browsers (prevents Folders being selected from 500px away on file drag and drop)
- Display a useful error message if getCMSFields() returns null
- When 'Duplicate this page' is clicked, first silently (without confirmation) save the page, then duplicate it so the new page is identical to the other page
- Fix errors when importing recipients to newsletter mailing list
- Fixed blocking during resize in IE6
- Don't show a 'No template selected' error when sending a test Newsletter if no template has been selected since templates for Emails are optional
- Fixed bug 'for newly created newsletter drafts, content of newsletter sent is not what is shown on screen'
- Don't save new Newsletter drafts as soon as they are created to prevent TinyMCE Javascript errors in IE
- Add if((typeof tinyMCE != 'undefined')) statement around call to tinyMCE.init() to prevent "Error: 'tinyMCE' is undefined" error in IE7 on Newsletter Recipient import
- Don't allow a deleted draft to be edited in the Newsletter section
- Fix a bug where newsletter drafts will be added, but not show up in the left tree (because of a Javascript error), if no selection has been made
- If there are no newsletter types, and 'Add new draft' is chosen, create a newsletter type to prevent errors
- Fix changed icon only showing after Save button is clicked twice
- Fixed VirtualPage creation
- Fix 'Sort subpages' not working correctly
- Use classes instead of the align tag to align images
2.1.1 (2 Nov 2007)
Bug Fixes
- CMS
- BBCode help link now works inside CMS
- Fixed invalid 'cursor: normal' CSS in cms_left.css
- Ensure ComplexTableField CSS is loaded in CMS
- Fixed blank comments showing in Comment Admin
- Ensure behaviour is applied correctly to new fields in a UserDefinedForm
- Fixed fatal error in Newsletter Admin on some servers
- Sapphire
- Fix infinite redirects when upgrading from 2.0.2
- Use the hostname, not the ip address, in dev/test mode tests
- Changed the include of the BBCodeParser so it works on more systems
- Fixed saving of HasOneComplexTableField and HasManyComplexTableField when value is undefined
- Removed extra comma in TableListField.js
- Fixed redirection of login when login fails
- Fixed bug where removing a comment via ajax removed all comments from display
- Fix $_SESSION not saving correctly on some servers
2.1.0 (2 Oct 2007)
New Features
- Comment administration section, and comment moderation
- Allow CMS users to limit view/edit access to a page
- Show an rss link for page comments on each page
Developer Tools
- Theme support
- Widget support
- Better extension API
- Unit testing framework
- More API documentation
- Added support for __ss_environment.php files
- New classes
- BankAccountField
- BBCodeParser
- HasManyComplexTableField
- HasOneComplexTableField
- ManyManyComplexTableField
- NewsletterType
- RestfulService (from mashups module)
- Improved classes
- ComplexTableField
- Validation in popup
- ContentController
- Added project()
- Controller
- Added redirectedTo()
- Convert
- Added raw2htmlatt()
- Added raw2mailto()
- DatabaseAdmin
- Drastically improved database build performance
- DataObject
- Added ID,ID,ID syntax for populating many-many joins
- DataObjectDecorator
- Allow member CMS fields to be added
- DataObjectSet
- Added getRange()
- Date
- Added past_date()
- Director
- Added set_dev_servers()
- Added set_test_servers()
- Added redirected_to()
- Refactored CMS page-URL accessing to use ->AbsoluteLink(), which can be overridden by defining alternateAbsoluteLink()
- Debug
- Optionally hide backtrace-headers in message() and show() (applied in 'showqueries')
- Email
- MimeType-fallback (from /etc/mime.types)
- Improved validation in is_valid_address()
- FieldSet
- Added insertAfter()
- Form
- Automatic filesystem backup of POST-data
- FormField
- Support for right-aligned titles
- Custom CSS-classes by addExtraClass() and removeExtraClass()
- Group
- Added Description field
- HtmlEditorField
- Allow classes other than 'typography' to be set
- Image
- Added PaddedImage()
- ImageField
- Added readonly transformation
- PageCommentInterface
- Added anchors to page comments, and made rss feed link to them
- Permission
- Added $strict flag to check()
- Allow passing of an array of permission codes to get_members_by_permission()
- Added get_groups_by_permission()
- PhoneNumberField
- Improved validation
- Security
- Added basicauthlogin()
- SecurityAdmin
- Added EDIT_PERMISSIONS permission code
- TableField
- Validation and RequiredFields
- TableListField
- Added sorting, highlighting, formatting
- Improved styling
- TreeDropdownField
- Improved styling
- Varchar
- Added RTF()
- ViewableData
- Added '<% if HasPerm(PERM_CODE() %>' for templates
- Javascript
- Implemented showIndicator() and hideIndicator()
- Improved statusMessage() to clear manually instead of fixed interval
- Added hideStatusMessage()
Bug Fixes
- CMS
- Fix specific newsletter bug
- Don't show classes user doesn't have permissions to change to in class dropdown
- Fix reading of Live pages in CMSMain
- Fix double page reading after changing the class
- Fix insert flash
- Fix version regex for release candidates
- Fix delete in Files and Images section
- Fixed saving root folder causes error
- Fixed "non-numeric ID" error that occurs when visiting newsletter section for a newsletter that doesn't exist (caused by session sometimes)
- Fixed CMS sort subpages bug
- Sapphire
- Improved spam detection
- Support for running SilverStripe in safe mode and under open_basedir restrictions
- PHP notice fixes
- Use normal authentification rather than basicauth for db/build
- Fix CSS of profiler pop-up
- Changed DropdownField $emptyString syntax from '0' to ''
- Fixed IE6 DOM-parsing bug caused by FormResponse::load_form()
- Triggering previewwrite for 'delete' and 'replace' SQL-actions
- Changed record-insertion in DataObject
- Boolean accepts database-default
- Fixed Permission::get_members_by_permission()
- Added memory_limit to publishall()
- Fix many-many component set relation setting
- The Link for a RedirectorPage points to its target
- Add SQL_ prefix in place it was missing in Email
- Added a check to make sure record exists before calling hasMethod on it in CheckboxSetField
- Fixed bug in DataObject::addStaticVars()
- Check for string 'true' as well as boolean in SiteTree::MetaTags()
- Fix AllNewsletters value not being passed to OptionSetField in SubscribeForm
- Improved the encapsulation of ErrorPage publication
- Fix redirect back after failing login
- Fixed renaming of .tar.gz and .tar.bz2 files
- Fixed validation of DateField, EmailField and NumericField
- Fix livesite bug for visibility handling difference between PHP5.2.0 and PHP5.1.6
- Changed colouring of db/build to be more appropriate for the actual meaning of the messages
- Fixed redirection from /home/ to /./ in IE6
- Use the homepage as a model for the security base-page, so that things like the current subsite are factored in
- Sorted permission codes in Permission::get_codes
- Changes to support gallery module
- Added missing has_many in DataObjectDecorator
- Replace empty strings in SQL queries with NULL
- JSParty
- TinyMCE has been updated to 2.1.1.1
Installer
- New installer look based on BlackCandy
- Use the new theme system
- Add first and last name fields
- Added ability to set servers that will be in dev mode
- When the posix module isn't present, throw a warning instead of dying
- Warn if PHP version is less that 5.2.0 in support of GoPHP5 (http://www.gophp5.org)
- Added favicon to installer and default template
- Optional reporting of version information to SilverStripe
- Installer now runs with short tags disabled
- open_basedir and safe mode fixes
2.0.2 (14 Jul 2007)
New Features
- BlackCandy is the new default theme
- Added pagination for page comments
- Updated date field in CMS-edited forms to use CalendarDateField
- Added 'open in new window' checkbox to link inserter
- Added dimension fields when inserting images
Developer Tools
- Much more API Documentation
- Modules must now have _config.php files in order to be loaded
- New Classes
- PermissionProvider
- Improved Classes
- CalendarDateField
- Added a calendar icon
- CheckboxSetField
- Prepared for use editing a many-many join in the CMS, popualted with a SQLMap object
- ClassInfo
- Added implementorsOf()
- ContentNegotiator
- Added set_encoding() to choose a character set other than utf-8
- DatabaseAdmin
- Removed populate() as it was a security risk, the initial content is now loaded via requireDefaultRecords()
- DataObject
- Added add_extension() for adding decorators in _config.php
- DataObjectDecorator
- Added extraDBFields() for modifying the decorated data objects, adding extra database fields
- Email
- Added send_all_emails_to()
- Added cc_all_emails_to()
- Added bcc_all_emails_to()
- Replaced sentLiveErrorsTo() with send_errors_to(), for more flexibility
- Form
- Added current_action()
- Added single_field_required()
- FormField
- Added Required(), so that you can put asterisks into a form template if you wish
- GenericDataAdmin
- Updated to use new permission model
- LeftAndMain
- Added second argument to setApplicationName() so that the name in the top corner and the name shown elsewhere can be 2 different strings
- Permission
- Added get_codes()
- Profiler
- Added trace argument to show()
- Added profiling scaffolds
- Added ?profile_trace=1 url variable tool to show a trace on the profiler
- Sorted the output of profiler
- Improvements to profiling information
- TableField
- Added option to aid putting TableFields inside the ComplexTableField popup
- TreeDropdownField
- Added setTreeBaseID(), for showing a sub-tree in your field
- Javascript
- Added event.setStyle to prototype_improvements.js
- Add class text field to image properties dialog in TinyMCE
- Added ?debug_behaviour=1 URL option for debugging behaviour calls with Firebug
Bug Fixes
- CMS
- Forms in newsletter & security section were incorrectly submitting when enter was pressed
- Fixed search in MemberTableField
- Don't show popup when validation fails in Security section
- Fixed bug where scrollbars aren't shown in the CMS
- Let CMSMain be used to manage objects without Sort
- The help button now redirects to http://userhelp.silverstripe.com
- Version displayed in CMS now works correctly
- Fixed CMS action button support when text size increases
- Added message when report is empty
- fixed (overrides) to CSS to avoid larger font-size due to em values
- Fixed tree scrolling and resizing issues
- Fixed sizing issues with CMS right content area
- Fixed bug with image insertion
- Fixed bug where new pages weren't being highlighted in the CMS
- Fixed bug where the last page in the site tree wasn't being highlighted in the CMS
- Fixed reordering of groups in security section
- Improvements to image inserter
- Sapphire
- Reduced warnings when E_NOTICE is enabled
- Fixed validation of date fields in a user defined form
- Fixed multiple security groups being created when logging in with default admin
- Fixed permissions for administrating page comments
- Fixed ContentController::PageComments() method to die if spammers are POSTing form data when comments are disabled
- Fixed permission checking on PHP 5.0.5
- Fixed 'cannot access protected property' error in Security section on PHP 5.0.5
- Fixed javascript validation of forms
- Fixed error when asp_tags = On
- Fixed bug where you have a non-required field with numeric validation
- Added a limit of 20 steps in Breadcrumbs generation
- Changed SiteTree.Title length from 100 to 255
- Fixed random password generator in Member::createNewPassword()
- Fixed BatchProcess to not display an error if no objects could be processed
- Fixed a bug where a user is redirected incorrectly after logging in
- Changed temp-folder selection to not leave temp files lying around, and put silverstripe temp files into a silverstripe-cache folder
- Made guid of PageComments in rss feed unique
- Removed duplicate XML class
- Fixed bugs caused by missing html elements
- Fixed code to remove need for short_open_tag
- Fixed FileSize generation for sizes of just over 1 meg
- only show $messageBlock in FormField::FieldHolder() if $Message is existing
- fixed rightTitle and id in FormField::FieldHolder()
- Fixed ?isDev=1 mode
- Set default of sendWarnings on Debug::send_errors_to
- Fixed formatting of error emails sent from ajax requests
- Removed debug plumbing from the results of Debug::backtrace()
- Simplified return data of htmlEmail, an inconsequential internal optimisation
- Create assets folder if it doesn't exist when uploading a file
- Fixed bug in SiteTree::NestedTitle()
- Don't append /home to the home page URL
- Small fix for windows installations
- Fixed efficiency problems in Versioned::get_latest_version
- Fixed File::sync(), to let it recurse into new directories in a single execution
- Fixed bug with getting form action that was breaking form submission and complextablefield pop-up
- Fixed SQLMap iteration
- Simplified EmailField validation error message
- Fixed some bugs in the debug emailer
- Reduced amount of ajax-refetching that the TreeSelectorFields do
- Fix macron support in reports
- Improved debug message (remove big blocks of redundant data)
- Allow for the disabling of default buttons. Apply this to CMSMain and GenericDataAdmin in the administration, so that we don't default to clicking the *DELETE* button.
- Added default value to first arg of permissionFailure(); it's not actually used!
- Improved handling of EditableFormFields on new UserDefinedForms
- Improved search results message shown on first load
- Made calendar control register a date change when the calendar is used
- Set some good defaults in DataObjectSet::TotalPages() if they have not been set
- Changes to support forum
- Require authenficiation to do a db/build on live sites
- Close directories before trying to remove them
- Fixed a bug where CheckboxSetField wouldn't save if there was a method the same as the field name
- Fix multiple "broken" in class attribute of HTML Content
- Fixed bug with TreeDropdownField when you clicked the expand link 3 or more times, it wouldn't close
- Fixed bug when editing properties of new text fields
- Fixed duplicate of UserDefinedForm objects
- JSParty
- Fixed a bug where you couldn't always edit the bottom of an WYSIWYG editor field
- Ensure that WYSIWYG context menu always appears on the screen
- Javascript performance improvements
- Fix weird bug in behaviour to do with class.applyToChildren
- Improved console.log alternative
Installer
- Added option of installing either the default template, or the tutorial template
- mod_rewrite check now works with http authentification
- Workaround for 'URL file-access is disabled in the server configuration' using curl for mod_rewrite test
- Better error message if the installer can't detect the web server
- Added an alternative .htaccess configuration
- Less file permissions required by the installer
- Made deleting the installer files more prominent, it now deletes all the installations files, not just php.
- MySQL password is now a hidden field.
2.0.1 (17 Apr 2007)
New Features
- Improved layout of UserDefinedForm submissions in CMS
- Don't show name field on root folder in Assets section
Developer Tools
- Mime types fallback for servers don't have /etc/mime.types
- mb_string module is now an optional dependency
- Added strong_create method to Object, as useCustomClass was not working correctly
Bug Fixes
- Sapphire
- Text->FirstParagraph() now only shows the first paragraph
- Fixed HTMLText->Summary()
- Fixed layout issues on IE7 for TreeDropdownField
- Don't show Akismet errors to user
- Removed overloaded MemberTableField->sourceItems() that was causing problems
- Fixed UserDefinedForm submission emails
- Fixed UserDefinedForm permissions
- If a file extension doesn't have a maximum upload size associated with it, then allow uploads of any size
- Fixed a bug with the TreeMultiselectField that prevented it from displaying the checkboxes
- Made Scheduled tasks concrete so they can be instantiated
- TableField fixes
- Fixed security vunerability in search
- GD::color_web2gd() was using incorrect substr
- Fixed last link css
- Fixed duplicate checkbox fields in UserDefinedForm
- Fixed css in UserDefinedForm
- CMS
- Fixed sizing of tabs in CMS
- Fixed popup for single asset in Files & Images section
- Fixed link to CMS on default homepage
- Fixed permissions table in Security section
- Fixed el no properties error in IE
- Pressing the flash button a second time now hides the dropdown
Installer
- Fixed MySQL version check
- Merge with existing .htaccess file
- Test that mod_rewrite is working
- Added option to delete installer files after successful install
- Fixed PHP4 parse error so installer loads and shows correct error message
- Apache test passes if apache is used but apache php functions are not available
Base project folder for a Silverstripe ([http://silverstripe.org](http://silverstripe.org)) installation. Required modules are installed via [http://github.com/silverstripe/recipe-cms](http://github.com/silverstripe/recipe-cms). For information on how to change the dependencies in a recipe, please have a look at [https://github.com/silverstripe/recipe-plugin](https://github.com/silverstripe/recipe-plugin). In addition, installer includes [theme/simple](https://github.com/silverstripe-themes/silverstripe-simple) as a default theme.
If you would like to make changes to the Silverstripe core codebase, we have an extensive [guide to contributing code](https://docs.silverstripe.org/en/4/contributing/code/).
<p>Thanks for choosing to use SilverStripe! Please follow the instructions below to get SilverStripe installed.</p>
<formaction="install.php"method="post">
<?php if(isset($hasErrorOtherThanDatabase)) { ?>
<pclass="error">
You aren't currently able to install the software. Please <ahref="#requirements">see below</a> for details.<br/>
If you are having problems meeting the requirements, see the <ahref="http://doc.silverstripe.com/doku.php?id=server-requirements">server requirements wiki page</a>.
</p>
<?php } else { ?>
<?php if($req->hasWarnings()) { ?>
<pclass="warning">
There are some issues that we recommend you look at before installing, however, you are still able to install the software.
Please see below for details.<br/>
If you are having problems meeting the requirements, see the <ahref="http://doc.silverstripe.com/doku.php?id=server-requirements">server requirements wiki page</a>.
</p>
<?php } else if(!$dbReq->hasErrors()) { ?>
<pclass="good">
You're ready to install!
</p>
<?php } ?>
<p>
<b>Template to install:</b>
</p>
<ulid="Themes">
<li><inputtype="radio"name="template"value="blackcandy"id="BlackCandy"checked="checked"/><labelfor="BlackCandy">BlackCandy, default template ready to use.</label></li>
<li><inputtype="radio"name="template"value="tutorial"id="EmptyTemplate"/><labelfor="EmptyTemplate">Empty template, ready to begin the tutorial.</label></li>
</ul>
<p>You can change the template or download another from the SilverStripe website after installation.</p>
<inputtype="checkbox"id="stats"name="stats"checked="checked"><labelfor="stats">Send information on my webserver to SilverStripe (this is only version information, used for statistical purposes)</label><br/>
<?php if($alreadyInstalled) { ?>
<pclass="warning">
<strong>Note:</strong> It seems as though SilverStripe is already installed here. If you ask me to install, I will overwrite
the <strong>.htaccess</strong> and <strong>mysite/_config.php</strong> files.
<br/>
<inputtype="checkbox"id="ReIn"name="force_reinstall"onclick="document.getElementById('install_button').disabled = !this.checked"/><labelfor="ReIn">That's okay, please re-install SilverStripe and overwrite these files.</label>
<pclass="mysql">SilverStripe stores its content in a MySQL database. Please provide the username and password to connect to the server here. If this account has permission to create databases, then we will create the database for you; otherwise, you must give the name of a database that already exists.</p>
array("MySQL Configuration","Are the access credentials correct","That username/password doesn't work"))){
@$this->requireMySQLVersion("4.1",array("MySQL Configuration","MySQL version at least 4.1","MySQL version 4.1 is required, you only have ","MySQL ".mysql_get_server_info()));
array("MySQL Configuration","Can I access/create the database","I can't create new databases and the database '$databaseConfig[database]' doesn't exist"));
}
}
/**
*Checkeverythingexceptthedatabase
*/
functioncheck(){
$this->errors=null;
$this->requirePHPVersion('5.2.0','5.0.4',array("PHP Configuration","PHP5 installed",null,"PHP version ".phpversion()));
// Check that we can identify the root folder successfully
$webserver="I can't tell what webserver you are running";
}
$this->isRunningApache(array("Webserver Configuration","Server software","$webserver. Without Apache I can't tell if mod_rewrite is enabled.",$webserver));
if(function_exists('apache_get_modules')){
$this->requireApacheModule('mod_rewrite',array("Webserver Configuration","mod_rewrite enabled","You need mod_rewrite to run SilverStripe CMS, but it is not enabled."));
}else{
$this->warning(array("Webserver Configuration","mod_rewrite enabled","I can't tell whether mod_rewrite is running. You may need to configure a rewriting rule yourself."));
}
$this->requireServerVariables(array('SCRIPT_NAME','HTTP_HOST','SCRIPT_FILENAME'),array("Webserver config","Recognised webserver","You seem to be using an unsupported webserver. The server variables SCRIPT_NAME, HTTP_HOST, SCRIPT_FILENAME need to be set."));
}
// Check for GD support
if(!$this->requireFunction("imagecreatetruecolor",array("PHP Configuration","GD2 support","PHP must have GD version 2."))){
$this->requireFunction("imagecreate",array("PHP Configuration","GD2 support","GD support for PHP not included."));
}
// Check for XML support
$this->requireFunction('xml_set_object',array("PHP Configuration","XML support","XML support not included in PHP."));
// Check for MySQL support
$this->requireFunction('mysql_connect',array("PHP Configuration","MySQL support","MySQL support not included in PHP."));
// Check memory allocation
$this->requireMemory(32*1024*1024,64*1024*1024,array("PHP Configuration","Memory allocated (PHP config option 'memory_limit')","SilverStripe needs a minimum of 32M allocated to PHP, but recommends 64M.",ini_get("memory_limit")));
// Check allow_call_time_pass_reference
$this->suggestPHPSetting('allow_call_time_pass_reference',array(1,'1','on','On'),array("PHP Configuration","Check that the php.ini setting allow_call_time_pass_reference is on",
"You can install with allow_call_time_pass_reference not set, but some warnings may get displayed. For best results, turn it on."));
$testDetails[2]="SilverStripe recommends PHP version $recommendedVersion or later, only $a.$b.$c is installed. While SilverStripe should run, you may run into issues, and future versions of SilverStripe may require a later version. Upgrading PHP is recommended.";
$this->warning($testDetails);
return;
}
if($a>$reqA)returntrue;
if($a==$reqA&&$b>$reqB)returntrue;
if($a==$reqA&&$b==$reqB&&$c>=$reqC)returntrue;
if(!$testDetails[2]){
if($a<$reqA){
$testDetails[2]="You need PHP version $version or later, only $a.$b.$c is installed. Unfortunately PHP$a and PHP$reqA have some incompatabilities, so if you are on a your web-host may need to move you to a different server. Some software doesn't work with PHP5 and so upgrading a shared server could be problematic.";
}else{
$testDetails[2]="You need PHP version $requiredVersion or later, only $a.$b.$c is installed. Please upgrade your server, or ask your web-host to do so.";
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.