Author:
phoque
Version:
1.08
Released:
4 March 2011
Category:
Workflow

Closed#2: Undefined class constant PAGE_ALERT_ERROR

I'm running Symphony 2.2.1 Beta 1 (latest integration branch), although the same issue exists on Symphony 2.2. I'm getting the following error:

Fatal error: Undefined class constant 'PAGE_ALERT_ERROR' in /Users/stephen/Sites/domain7/team-members/extensions/dump_db/extension.driver.php on line 88

The extension is using a deprecated error constant. Line 88 of the extension driver should be changed from this:

        if (count($filesWriteable) < 2 && !$downloadMode && !$this->__filesNewer()) {
            Administration::instance()->Page->pageAlert(__('At least one of the database-dump files is not writeable. You will not be able to save your database.'), AdministrationPage::PAGE_ALERT_ERROR);
        }

to this:

        if (count($filesWriteable) < 2 && !$downloadMode && !$this->__filesNewer()) {
            Administration::instance()->Page->pageAlert(__('At least one of the database-dump files is not writeable. You will not be able to save your database.'), Alert::ERROR);
        }

Fixed. Thanks!

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details