Difference between revisions of "Potential backward compatibility issues in Joomla 3 and Joomla Platform 12.2"

From Joomla! Documentation

m
m (grammar, spelling and punctuation details)
Line 1: Line 1:
{{incomplete}}{{RightTOC}}This documents track potential backward compatibility issues for Joomla 3.0 and Joomla Platform 12.1 which is included in Joomla 3.0. Listed are issues which potentially break extensions.
+
{{incomplete}}{{RightTOC}}This document tracks potential backward compatibility issues for Joomla 3.0 and Joomla Platform 12.1, which is included in Joomla 3.0. Listed are issues which potentially break extensions.
Please help making this document complete.
+
Please help make this document complete.
  
 
The base of this comparison is Joomla 2.5/Platform 11.4.
 
The base of this comparison is Joomla 2.5/Platform 11.4.
Line 7: Line 7:
  
 
= Platform =
 
= Platform =
The platform removed a larger number of deprecated classes and methods. For most extensions written for Joomla 2.5 the required changes should be reasonably small. Note that there are still deprecated classes in the platform that will be removed in future versions, developers should stop using them where possible.
+
The platform removed a larger number of deprecated classes and methods. For most extensions written for Joomla 2.5, the required changes should be reasonably small. Note that there are still deprecated classes in the platform that will be removed in future versions -- developers should stop using them where possible.
  
 
== Updated System Requirements ==
 
== Updated System Requirements ==
Line 16: Line 16:
  
 
== General changes ==
 
== General changes ==
*Almost all functions, methods, members and classed marked as deprecated in 12.1 have been removed. They won't be listed in this document.
+
*Almost all functions, methods, members and classed marked as deprecated in Platform 11.4 have been removed. They won't be listed in this document.
*Appending ?no_html to an URL to get a RAW view is not supported anymore (this was an old Joomla 1.0 feature)
+
*Appending ?no_html to an URL to get a RAW view is not supported anymore (this was an old Joomla 1.0 feature).
*The DS constant has been removed. If you really need it you can use DIRECTORY_SEPARATOR instead
+
*The DS constant has been removed. If you really need it you can use DIRECTORY_SEPARATOR instead.
 
*Many more function arguments have been type hinted, including existing classes. Make sure you're always passing values of the correct type.
 
*Many more function arguments have been type hinted, including existing classes. Make sure you're always passing values of the correct type.
*The name of modules now have to start with mod_
+
*The name of modules now have to start with "mod_".
 
*Extensions need to set the registeredurlparams now, the fall back on the URL has been removed.
 
*Extensions need to set the registeredurlparams now, the fall back on the URL has been removed.
*Some cookies are only accessible trough HTTP (not via JavaScript). For example the session cookie.
+
*Some cookies are only accessible through HTTP (not via JavaScript). For example; the session cookie.
*Due to upcoming changes to the MVC implementation in the platform, JModel, JView, and JController are re-used as the names of the new interfaces. For now use JModelLegacy, JViewLegacy and JControllerLegacy instead.  
+
*Due to upcoming changes to the MVC implementation in the platform, JModel, JView, and JController are re-used as the names of the new interfaces. For now, use JModelLegacy, JViewLegacy and JControllerLegacy instead.  
  
 
== Changes to extension installation ==
 
== Changes to extension installation ==
*Use of the <install> base tag (from 1.5) is no longer supported; use <extension> instead
+
*Use of the <install> base tag (from 1.5) is no longer supported; use <extension> instead.
*Suppport for install_script and uninstall_script, and the methods com_install and com_uninstall in these scripts, has been removed; use scriptfile instead
+
*Suppport for install_script and uninstall_script, and the methods com_install and com_uninstall in these scripts, has been removed; use scriptfile instead.
*In language extensions, support for client="both" has been removed; package each client as a separate extension and optionally bundle them as a package extension instead
+
*In language extensions, support for client="both" has been removed; prepare each client as a separate extension and optionally bundle them as a package extension instead.
*File paths for plugins no longer support the old 1.5 method (i.e. plugins/system/cache.php); each plugin must be in its own folder (i.e. plugins/system/cache/cache.php)
+
*File paths for plugins no longer support the old 1.5 method (i.e. plugins/system/cache.php); each plugin must now be in its own folder (i.e. plugins/system/cache/cache.php).
  
 
== Changes to Components ==
 
== Changes to Components ==
*In admin components the admin.*.php and toolbar.*.php are not automatically included anymore. This was a Joomla 1.0 legacy feature.
+
*In admin components the admin.*.php and toolbar.*.php are not automatically included anymore (this was a Joomla 1.0 legacy feature).
  
 
== Moved files ==
 
== Moved files ==
Line 86: Line 86:
 
*JController::$_acoSectionValue has been removed.
 
*JController::$_acoSectionValue has been removed.
 
*JController::authorize() has been removed. Use JController::authorise() instead.
 
*JController::authorize() has been removed. Use JController::authorise() instead.
*JController:: setAccessControl() has been removed. Use JAccess.
+
*JController::setAccessControl() has been removed. Use JAccess.
  
 
==== JControllerLegacy ====
 
==== JControllerLegacy ====
Line 112: Line 112:
 
JDatabase had been renamed JDatabaseDriver. JDatabase is still around (but deprecated) and is the base of JDatabaseDriver, this way type hints and instance of checks keep working.
 
JDatabase had been renamed JDatabaseDriver. JDatabase is still around (but deprecated) and is the base of JDatabaseDriver, this way type hints and instance of checks keep working.
  
Due to lazy-connecting a connection is only opened when running a query or explicitly calling JDatabseDriver::connected(). Beware of that when checking JDatabaseDriver::connected().
+
Due to lazy-connecting, a connection is only opened when running a query or explicitly calling JDatabaseDriver::connected(). Beware of that when checking JDatabaseDriver::connected().
  
 
==== JDatabase ====
 
==== JDatabase ====
Line 147: Line 147:
  
 
==== JDocumentXml ====
 
==== JDocumentXml ====
*JDocumentXml::_name has been renamed to JDocumentXml::name
+
*JDocumentXml::$_name has been renamed to JDocumentXml::$name.
  
 
=== Environment ===
 
=== Environment ===
Line 159: Line 159:
 
*JBrowser::hasFeature() has been removed.
 
*JBrowser::hasFeature() has been removed.
 
*JBrowser::getFeature() has been removed.
 
*JBrowser::getFeature() has been removed.
*JBrowser::_majorVersion has been renamed to JBrowser::majorVersion
+
*JBrowser::$_majorVersion has been renamed to JBrowser::$majorVersion.
*JBrowser::_minorVersion has been renamed to JBrowser::minorVersion
+
*JBrowser::$_minorVersion has been renamed to JBrowser::$minorVersion.
*JBrowser::_browser has been renamed to JBrowser::browser
+
*JBrowser::$_browser has been renamed to JBrowser::$browser.
*JBrowser::_agent has been renamed to JBrowser::agent
+
*JBrowser::$_agent has been renamed to JBrowser::$agent.
*JBrowser::_lowerAgent has been renamed to JBrowser::lowerAgent
+
*JBrowser::$_lowerAgent has been renamed to JBrowser::$lowerAgent.
*JBrowser::_accept has been renamed to JBrowser::accept
+
*JBrowser::$_accept has been renamed to JBrowser::$accept.
*JBrowser::_accept_parsed has been renamed to JBrowser::acceptParsed
+
*JBrowser::$_accept_parsed has been renamed to JBrowser::$acceptParsed.
*JBrowser::_platform has been renamed to JBrowser::platform
+
*JBrowser::$_platform has been renamed to JBrowser::$platform.
*JBrowser::_robots has been renamed to JBrowser::robots
+
*JBrowser::$_robots has been renamed to JBrowser::$robots.
*JBrowser::_mobile has been renamed to JBrowser::mobile
+
*JBrowser::$_mobile has been renamed to JBrowser::$mobile.
*JBrowser::_images has been renamed to JBrowser::images
+
*JBrowser::$_images has been renamed to JBrowser::$images.
  
 
==== JRequest ====
 
==== JRequest ====
Line 177: Line 177:
 
==== JURI ====
 
==== JURI ====
 
*JURI does not extend JObject anymore. You must not use any of JObject's methods.
 
*JURI does not extend JObject anymore. You must not use any of JObject's methods.
*JUri::_uri has been renamed to JUri::uri
+
*JUri::$_uri has been renamed to JUri::$uri.
*JUri::_scheme has been renamed to JUri::scheme
+
*JUri::$_scheme has been renamed to JUri::$scheme.
*JUri::_host has been renamed to JUri::host
+
*JUri::$_host has been renamed to JUri::$host.
*JUri::_port has been renamed to JUri::port
+
*JUri::$_port has been renamed to JUri::$port.
*JUri::_user has been renamed to JUri::user
+
*JUri::$_user has been renamed to JUri::$user.
*JUri::_pass has been renamed to JUri::pass
+
*JUri::$_pass has been renamed to JUri::$pass.
*JUri::_path has been renamed to JUri::path
+
*JUri::$_path has been renamed to JUri::$path.
*JUri::_query has been renamed to JUri::query
+
*JUri::$_query has been renamed to JUri::$query.
*JUri::_fragment has been renamed to JUri::fragment
+
*JUri::$_fragment has been renamed to JUri::$fragment.
*JUri::_vars has been renamed to JUri::vars
+
*JUri::$_vars has been renamed to JUri::$vars.
  
 
=== Error ===
 
=== Error ===
Line 195: Line 195:
 
==== JProfiler ====
 
==== JProfiler ====
 
*JProfiler does not extend JObject anymore. You must not use any of JObject's methods.
 
*JProfiler does not extend JObject anymore. You must not use any of JObject's methods.
*JProfiler::_start has been renamed to JProfiler::start
+
*JProfiler::$_start has been renamed to JProfiler::$start.
*JProfiler::_prefix has been renamed to JProfiler::prefix
+
*JProfiler::$_prefix has been renamed to JProfiler::$prefix.
*JProfiler::_buffer has been renamed to JProfiler::buffer
+
*JProfiler::$_buffer has been renamed to JProfiler::$buffer.
*JProfiler::_previous_time has been renamed to JProfiler::previousTime
+
*JProfiler::$_previous_time has been renamed to JProfiler::$previousTime.
*JProfiler::_previous_mem has been renamed to JProfiler::previousMem
+
*JProfiler::$_previous_mem has been renamed to JProfiler::$previousMem.
*JProfiler::_iswin has been renamed to JProfiler::isWin
+
*JProfiler::$_iswin has been renamed to JProfiler::$isWin.
  
 
=== Filesystem ===
 
=== Filesystem ===
  
 
==== JStream ====
 
==== JStream ====
*JStream::_fh has been renamed to JStream::fh
+
*JStream::$_fh has been renamed to JStream::$fh.
*JStream::_filesize has been renamed to JStream::filesize
+
*JStream::$_filesize has been renamed to JStream::$filesize.
*JStream::_context has been renamed to JStream::context
+
*JStream::$_context has been renamed to JStream::$context.
*JStream::_contextOptions has been renamed to JStream::contextOptions
+
*JStream::$_contextOptions has been renamed to JStream::$contextOptions.
*JStream::_openmode has been renamed to JStream::openmode
+
*JStream::$_openmode has been renamed to JStream::$openmode.
  
 
==== JStreamString ====
 
==== JStreamString ====
*JStream::_currentstring has been renamed to JStream::currentString
+
*JStream::$_currentstring has been renamed to JStream::$currentString.
*JStream::_path has been renamed to JStream::path
+
*JStream::$_path has been renamed to JStream::$path.
*JStream::_mode has been renamed to JStream::mode
+
*JStream::$_mode has been renamed to JStream::$mode.
*JStream::_options has been renamed to JStream::options
+
*JStream::$_options has been renamed to JStream::$options.
*JStream::_opened_path has been renamed to JStream::openedPath
+
*JStream::$_opened_path has been renamed to JStream::$openedPath.
*JStream::_pos has been renamed to JStream::pos
+
*JStream::$_pos has been renamed to JStream::$pos.
*JStream::_len has been renamed to JStream::len
+
*JStream::$_len has been renamed to JStream::$len.
*JStream::_stat has been renamed to JStream::stat
+
*JStream::$_stat has been renamed to JStream::$stat.
  
 
=== Filter ===
 
=== Filter ===
Line 238: Line 238:
  
 
==== JHtmlBehavior ====
 
==== JHtmlBehavior ====
*JHtmlBehavior::mootools() has been removed. Use JHtmlBehavior::framework instead.
+
*JHtmlBehavior::mootools() has been removed. Use JHtmlBehavior::framework() instead.
 
*JHtmlBehavior::noframes() the argument $location has been removed. It was previously unused.
 
*JHtmlBehavior::noframes() the argument $location has been removed. It was previously unused.
  
Line 246: Line 246:
  
 
==== JHtmlSelect ====
 
==== JHtmlSelect ====
*JHtmlSelect::_optionDefaults has been renamed to JHtmlSelect::optionDefaults
+
*JHtmlSelect::$_optionDefaults has been renamed to JHtmlSelect::$optionDefaults.
  
 
==== JToolBar ====
 
==== JToolBar ====
Line 255: Line 255:
  
 
==== JPagination ====
 
==== JPagination ====
*JPagination::_viewall has been renamed to JPagination::viewall
+
*JPagination::$_viewall has been renamed to JPagination::$viewall.
*JPagination::_additionalUrlParams has been renamed to JPagination::additionalUrlParams
+
*JPagination::$_additionalUrlParams has been renamed to JPagination::$additionalUrlParams.
  
 
=== Installer ===
 
=== Installer ===
Line 263: Line 263:
 
*JInstaller::getOverwrite() has been removed. Use JInstaller::isOverwrite() instead.
 
*JInstaller::getOverwrite() has been removed. Use JInstaller::isOverwrite() instead.
 
*JInstaller::getUpgrade() has been removed. Use JInstaller::isUpgrade() instead.
 
*JInstaller::getUpgrade() has been removed. Use JInstaller::isUpgrade() instead.
*JInstaller::_paths has been renamed to JInstaller::paths
+
*JInstaller::$_paths has been renamed to JInstaller::$paths.
*JInstaller::_upgrade has been renamed to JInstaller::upgrade
+
*JInstaller::$_upgrade has been renamed to JInstaller::$upgrade.
*JInstaller::_overwrite has been renamed to JInstaller::overwrite
+
*JInstaller::$_overwrite has been renamed to JInstaller::$overwrite.
*JInstaller::_stepStack has been renamed to JInstaller::stepStack
+
*JInstaller::$_stepStack has been renamed to JInstaller::$stepStack.
  
 
==== JInstallerLanguage ====
 
==== JInstallerLanguage ====
*JInstallerLanguage::_core as been renamed to JInstallerLanguage::core
+
*JInstallerLanguage::$_core as been renamed to JInstallerLanguage::$core.
  
 
=== Language ===
 
=== Language ===
Line 293: Line 293:
  
 
==== JRegistryFormatINI ====
 
==== JRegistryFormatINI ====
* JRegistryFormatINI::stringToObject() the second argument ($option) may not be a boolean anymore.
+
*JRegistryFormatINI::stringToObject() the second argument ($option) may not be a boolean anymore.
  
 
==== JRegistryFormatJSON ====
 
==== JRegistryFormatJSON ====
Line 301: Line 301:
  
 
==== JSessionStorageDatabase ====
 
==== JSessionStorageDatabase ====
*JSessionStorageDatabase::_data has been renamed to JSessionStorageDatabase::data
+
*JSessionStorageDatabase::$_data has been renamed to JSessionStorageDatabase::$data.
  
 
=== Table ===
 
=== Table ===
Line 312: Line 312:
  
 
==== JUpdate ====
 
==== JUpdate ====
*JUpdate::_xml_parser has been renamed to JUpdate::xmlParser
+
*JUpdate::$_xml_parser has been renamed to JUpdate::$xmlParser.
*JUpdate::_stack has been renamed to JUpdate::stack
+
*JUpdate::$_stack has been renamed to JUpdate::$stack.
*JUpdate::_state_store has been renamed to JUpdate::stateStore
+
*JUpdate::$_state_store has been renamed to JUpdate::$stateStore.
*JUpdate::_current_update has been renamed to JUpdate::currentUpdate
+
*JUpdate::$_current_update has been renamed to JUpdate::$currentUpdate.
  
 
==== JUpdater ====
 
==== JUpdater ====
Line 325: Line 325:
 
*The constant JAUTHENTICATE_STATUS_SUCCESS has been removed. Use JAuthentication::STATUS_SUCCESS instead.
 
*The constant JAUTHENTICATE_STATUS_SUCCESS has been removed. Use JAuthentication::STATUS_SUCCESS instead.
 
*The constant JAUTHENTICATE_STATUS_CANCEL has been removed. No replacement.
 
*The constant JAUTHENTICATE_STATUS_CANCEL has been removed. No replacement.
*The constant JAUTHENTICATE_STATUS_FAILURE has been removed. Use JAuthentication:: STATUS_FAILURE instead.
+
*The constant JAUTHENTICATE_STATUS_FAILURE has been removed. Use JAuthentication::STATUS_FAILURE instead.
*JAuthentication::_observers has been renamed to JAuthentication::observers
+
*JAuthentication::$_observers has been renamed to JAuthentication::$observers.
*JAuthentication::_state has been renamed to JAuthentication::state
+
*JAuthentication::$_state has been renamed to JAuthentication::$state.
*JAuthentication::_methods has been renamed to JAuthentication::methods
+
*JAuthentication::$_methods has been renamed to JAuthentication::$methods.
  
 
==== JUser ====
 
==== JUser ====
Line 339: Line 339:
  
 
==== JBuffer ====
 
==== JBuffer ====
*JBuffer::_buffers has been renamed to JBuffer::buffers
+
*JBuffer::$_buffers has been renamed to JBuffer::$buffers.
  
 
==== JDate ====
 
==== JDate ====
Line 346: Line 346:
 
*JDate::setOffset() has been removed.
 
*JDate::setOffset() has been removed.
 
*JDate::$offsets has been removed.
 
*JDate::$offsets has been removed.
*JDate__construct() doesn't accept an numeric value for $tz anymore.
+
*JDate::__construct() doesn't accept an numeric value for $tz anymore.
*JDate::_tz has been renamed to JDate::tz.
+
*JDate::$_tz has been renamed to JDate::$tz.
  
 
==== JUtility ====
 
==== JUtility ====
 
*JUtility::sendMail() has been removed. Use JMail::sendMail() instead.
 
*JUtility::sendMail() has been removed. Use JMail::sendMail() instead.
*JUtility::sendAdminMail() has been removed. Use JMail:: sendAdminMail() instead.
+
*JUtility::sendAdminMail() has been removed. Use JMail::sendAdminMail() instead.
 
*JUtility::getHash() has been removed. Use JApplication::getHash() instead.
 
*JUtility::getHash() has been removed. Use JApplication::getHash() instead.
 
*JUtility::getToken() has been removed. Use JSession::getFormToken() instead.
 
*JUtility::getToken() has been removed. Use JSession::getFormToken() instead.
Line 357: Line 357:
 
*JUtility::dump() has been removed. No replacement.
 
*JUtility::dump() has been removed. No replacement.
 
*JUtility::array_unshift_ref() has been removed. No replacement.
 
*JUtility::array_unshift_ref() has been removed. No replacement.
*JUtility:: array_unshift_ref() has been removed. No replacement.
+
*JUtility::array_unshift_ref() has been removed. No replacement.
  
 
==== JXMLElement ====
 
==== JXMLElement ====
*JXMLElement::data() has been removed
+
*JXMLElement::data() has been removed.
 
*JXMLElement::getAttribute() has been removed. Use SimpleXMLElement::attributes() instead.
 
*JXMLElement::getAttribute() has been removed. Use SimpleXMLElement::attributes() instead.
  
 
== JavaScript ==
 
== JavaScript ==
*Compatibility with MooTools 1.2 has been removed
+
*Compatibility with MooTools 1.2 has been removed.
*Forms that have name="adminForm" now also require id="adminForm"
+
*Forms that have name="adminForm" now also require id="adminForm".
 
*checkAll() has been removed. Use Joomla.checkAll() instead.
 
*checkAll() has been removed. Use Joomla.checkAll() instead.
 
*isChecked() has been removed. Use Joomla.isChecked() instead.
 
*isChecked() has been removed. Use Joomla.isChecked() instead.

Revision as of 02:24, 17 August 2012

Quill icon.png
Content is Incomplete

This article or section is incomplete, which means it may be lacking information. You are welcome to assist in its completion by editing it as well. If this article or section has not been edited in several days, please consider helping complete the content.
This article was last edited by HobbesPDX (talk| contribs) 11 years ago. (Purge)

This document tracks potential backward compatibility issues for Joomla 3.0 and Joomla Platform 12.1, which is included in Joomla 3.0. Listed are issues which potentially break extensions.

Please help make this document complete.

The base of this comparison is Joomla 2.5/Platform 11.4.

Backwards compatibility issues were also tracked for Joomla 2.5: Potential backward compatibility issues in Joomla 2.5 and Joomla Platform 11.4

Platform[edit]

The platform removed a larger number of deprecated classes and methods. For most extensions written for Joomla 2.5, the required changes should be reasonably small. Note that there are still deprecated classes in the platform that will be removed in future versions -- developers should stop using them where possible.

Updated System Requirements[edit]

The system requirements have changed in the following points:

  • PHP 5.3.1
  • register_globals must be off
  • magic_quotes_gpc must be off

General changes[edit]

  • Almost all functions, methods, members and classed marked as deprecated in Platform 11.4 have been removed. They won't be listed in this document.
  • Appending ?no_html to an URL to get a RAW view is not supported anymore (this was an old Joomla 1.0 feature).
  • The DS constant has been removed. If you really need it you can use DIRECTORY_SEPARATOR instead.
  • Many more function arguments have been type hinted, including existing classes. Make sure you're always passing values of the correct type.
  • The name of modules now have to start with "mod_".
  • Extensions need to set the registeredurlparams now, the fall back on the URL has been removed.
  • Some cookies are only accessible through HTTP (not via JavaScript). For example; the session cookie.
  • Due to upcoming changes to the MVC implementation in the platform, JModel, JView, and JController are re-used as the names of the new interfaces. For now, use JModelLegacy, JViewLegacy and JControllerLegacy instead.

Changes to extension installation[edit]

  • Use of the <install> base tag (from 1.5) is no longer supported; use <extension> instead.
  • Suppport for install_script and uninstall_script, and the methods com_install and com_uninstall in these scripts, has been removed; use scriptfile instead.
  • In language extensions, support for client="both" has been removed; prepare each client as a separate extension and optionally bundle them as a package extension instead.
  • File paths for plugins no longer support the old 1.5 method (i.e. plugins/system/cache.php); each plugin must now be in its own folder (i.e. plugins/system/cache/cache.php).

Changes to Components[edit]

  • In admin components the admin.*.php and toolbar.*.php are not automatically included anymore (this was a Joomla 1.0 legacy feature).

Moved files[edit]

All classes listed here should now be autoloadable. Explicit requires and includes have to be modified or removed.

Classes moved to the CMS[edit]

  • JFormFieldHelpsite
  • JFormFieldMedia
  • JFormFieldMenuitem
  • JFormFieldUser
  • JHelp
  • JTableContent

Classes moved within the platform[edit]

  • JDatabaseQuery subclasses
  • JInput (and all subclasses)
  • JTable (and all subclasses)
  • JArchive (and all subclasses)

Renamed classes[edit]

  • JFTP is now called JClientFtp
  • JLDAP is now called JClientLdap
  • JWebClient is now called JApplicationWebClient

Removed classes[edit]

  • JParameter (use JForm instead)
  • JElement and its subclasses
  • JFormFieldEditors (use JFormFieldPlugins instead)
  • JHtmlImage
  • JSimpleXML
  • JPane

Changes to classes[edit]

Base classes[edit]

JFactory[edit]

  • JFactory::getXMLParser() has been removed. For RSS and Atom use cases, use JFactory::getFeedParser() instead. To read XML files or strings use JFactory::getXML().
  • JFactory::_createConfig() has been removed. Use JFactory::createConfig() instead.
  • JFactory::_createSession() has been removed. Use JFactory::createSession() instead.
  • JFactory::_createDbo() has been removed. Use JFactory::createDbo() instead.
  • JFactory::_createMailer() has been removed. Use JFactory::createMailer() instead.
  • JFactory::_createDocument() has been removed. Use JFactory::createDocument() instead.

Application[edit]

JApplicationHelper[edit]

  • JApplicationHelper::getPath() has been removed. No replacement.
  • JApplicationHelper::_checkPath() has been removed. No replacement.

JController[edit]

  • JController::$_acoSection has been removed.
  • JController::$_acoSectionValue has been removed.
  • JController::authorize() has been removed. Use JController::authorise() instead.
  • JController::setAccessControl() has been removed. Use JAccess.

JControllerLegacy[edit]

  • JControllerLegacy::display() needs an extra parameter: ($cachable = false, $urlparams = false).

Archive[edit]

Adapters[edit]

  • JArchiveBzip2 does not extend JObject anymore. You must not use any of JObject's methods.
  • JArchiveGzip does not extend JObject anymore. You must not use any of JObject's methods.
  • JArchiveTar does not extend JObject anymore. You must not use any of JObject's methods.
  • JArchiveZip does not extend JObject anymore. You must not use any of JObject's methods.

Base[edit]

JObject[edit]

  • JObject::toString() has been removed. Use JObject::__toString() instead.

Client[edit]

JClientLdap (formerly JLDAP)[edit]

  • JClientLdap does not extend JObject anymore. You must not use any of JObject's methods.

Database[edit]

JDatabase had been renamed JDatabaseDriver. JDatabase is still around (but deprecated) and is the base of JDatabaseDriver, this way type hints and instance of checks keep working.

Due to lazy-connecting, a connection is only opened when running a query or explicitly calling JDatabaseDriver::connected(). Beware of that when checking JDatabaseDriver::connected().

JDatabase[edit]

  • JDatabase::$hasQuoted has been removed.
  • JDatabase::$quoted has been removed.
  • JDatabase::addQuoted() has been removed.
  • JDatabase::hasUTF() has been removed.
  • JDatabase::debug() has been removed. Use JDatabase::setDebug() instead.
  • JDatabase::explain() has been removed.
  • JDatabase::getEscaped() has been removed. Use JDatabase::escape() instead.
  • JDatabase::getTableFields() has been removed. Use JDatabase::getTableColumns() instead.
  • JDatabase::getTicker() has been removed. Use JDatabase::count() instead.
  • JDatabase::isQuoted() has been removed.
  • JDatabase::loadResultArray() has been removed. Use JDatabase::loadColumn() instead.
  • JDatabase::nameQuote() has been removed. Use JDatabase::quoteName() instead.
  • JDatabase::queryBatch() has been removed.

Document[edit]

JDocument[edit]

  • JDocument::setMetaData() the $sync argument has been removed. It was broken beyond repair.

JDocumentRenderer[edit]

  • JDocumentRenderer does not extend JObject anymore. You must not use any of JObject's methods.

JDocumentFeed[edit]

  • JFeedItem does not extend JObject anymore. You must not use any of JObject's methods.
  • JFeedEnclosure does not extend JObject anymore. You must not use any of JObject's methods.
  • JFeedImage does not extend JObject anymore. You must not use any of JObject's methods.

JDocumentOpenSearch[edit]

  • JOpenSearchUrl does not extend JObject anymore. You must not use any of JObject's methods.
  • JOpenSearchImage does not extend JObject anymore. You must not use any of JObject's methods.

JDocumentXml[edit]

  • JDocumentXml::$_name has been renamed to JDocumentXml::$name.

Environment[edit]

JBrowser[edit]

  • JBrowser does not extend JObject anymore. You must not use any of JObject's methods.
  • JBrowser::setQuirk() has been removed.
  • JBrowser::hasQuirk() has been removed.
  • JBrowser::getQuirk() has been removed.
  • JBrowser::setFeature() has been removed.
  • JBrowser::hasFeature() has been removed.
  • JBrowser::getFeature() has been removed.
  • JBrowser::$_majorVersion has been renamed to JBrowser::$majorVersion.
  • JBrowser::$_minorVersion has been renamed to JBrowser::$minorVersion.
  • JBrowser::$_browser has been renamed to JBrowser::$browser.
  • JBrowser::$_agent has been renamed to JBrowser::$agent.
  • JBrowser::$_lowerAgent has been renamed to JBrowser::$lowerAgent.
  • JBrowser::$_accept has been renamed to JBrowser::$accept.
  • JBrowser::$_accept_parsed has been renamed to JBrowser::$acceptParsed.
  • JBrowser::$_platform has been renamed to JBrowser::$platform.
  • JBrowser::$_robots has been renamed to JBrowser::$robots.
  • JBrowser::$_mobile has been renamed to JBrowser::$mobile.
  • JBrowser::$_images has been renamed to JBrowser::$images.

JRequest[edit]

  • JRequest::clean() has been removed.
  • JRequest::_cleanVar() is now protected.

JURI[edit]

  • JURI does not extend JObject anymore. You must not use any of JObject's methods.
  • JUri::$_uri has been renamed to JUri::$uri.
  • JUri::$_scheme has been renamed to JUri::$scheme.
  • JUri::$_host has been renamed to JUri::$host.
  • JUri::$_port has been renamed to JUri::$port.
  • JUri::$_user has been renamed to JUri::$user.
  • JUri::$_pass has been renamed to JUri::$pass.
  • JUri::$_path has been renamed to JUri::$path.
  • JUri::$_query has been renamed to JUri::$query.
  • JUri::$_fragment has been renamed to JUri::$fragment.
  • JUri::$_vars has been renamed to JUri::$vars.

Error[edit]

JError[edit]

  • JError::isError() has been removed. Use instance of Exception instead.

JProfiler[edit]

  • JProfiler does not extend JObject anymore. You must not use any of JObject's methods.
  • JProfiler::$_start has been renamed to JProfiler::$start.
  • JProfiler::$_prefix has been renamed to JProfiler::$prefix.
  • JProfiler::$_buffer has been renamed to JProfiler::$buffer.
  • JProfiler::$_previous_time has been renamed to JProfiler::$previousTime.
  • JProfiler::$_previous_mem has been renamed to JProfiler::$previousMem.
  • JProfiler::$_iswin has been renamed to JProfiler::$isWin.

Filesystem[edit]

JStream[edit]

  • JStream::$_fh has been renamed to JStream::$fh.
  • JStream::$_filesize has been renamed to JStream::$filesize.
  • JStream::$_context has been renamed to JStream::$context.
  • JStream::$_contextOptions has been renamed to JStream::$contextOptions.
  • JStream::$_openmode has been renamed to JStream::$openmode.

JStreamString[edit]

  • JStream::$_currentstring has been renamed to JStream::$currentString.
  • JStream::$_path has been renamed to JStream::$path.
  • JStream::$_mode has been renamed to JStream::$mode.
  • JStream::$_options has been renamed to JStream::$options.
  • JStream::$_opened_path has been renamed to JStream::$openedPath.
  • JStream::$_pos has been renamed to JStream::$pos.
  • JStream::$_len has been renamed to JStream::$len.
  • JStream::$_stat has been renamed to JStream::$stat.

Filter[edit]

JFilterInput[edit]

  • JFilterInput does not extend JObject anymore. You must not use any of JObject's methods.

HTML[edit]

JHtml[edit]

  • JHtml::_includeRelativeFiles() has been removed. Use JHtml::includeRelativeFiles() instead.
  • JHtml::core() has been removed. Use JHtmlBehavior::framework() instead.
  • JHtml::script() doesn't support a string as the second parameter anymore. This used to be the path to the file in Joomla 1.5 and has been removed now.
  • JHtml::stylesheet() doesn't support a string as the second parameter anymore. This used to be the path to the file in Joomla 1.5 and has been removed now.

JHtmlAccess[edit]

  • JHtmlAccess::assetgroups() the argument $config has been removed. It was previously unused.

JHtmlBehavior[edit]

  • JHtmlBehavior::mootools() has been removed. Use JHtmlBehavior::framework() instead.
  • JHtmlBehavior::noframes() the argument $location has been removed. It was previously unused.

JHtmlList[edit]

  • JHtmlList::ordering() the argument $chop has been removed. It was previously unused.
  • JHtmlList::users(), the argument $reg has been removed.

JHtmlSelect[edit]

  • JHtmlSelect::$_optionDefaults has been renamed to JHtmlSelect::$optionDefaults.

JToolBar[edit]

  • JToolBar does not extend JObject anymore. You must not use any of JObject's methods.

JButton[edit]

  • JButton does not extend JObject anymore. You must not use any of JObject's methods.

JPagination[edit]

  • JPagination::$_viewall has been renamed to JPagination::$viewall.
  • JPagination::$_additionalUrlParams has been renamed to JPagination::$additionalUrlParams.

Installer[edit]

JInstaller[edit]

  • JInstaller::getOverwrite() has been removed. Use JInstaller::isOverwrite() instead.
  • JInstaller::getUpgrade() has been removed. Use JInstaller::isUpgrade() instead.
  • JInstaller::$_paths has been renamed to JInstaller::$paths.
  • JInstaller::$_upgrade has been renamed to JInstaller::$upgrade.
  • JInstaller::$_overwrite has been renamed to JInstaller::$overwrite.
  • JInstaller::$_stepStack has been renamed to JInstaller::$stepStack.

JInstallerLanguage[edit]

  • JInstallerLanguage::$_core as been renamed to JInstallerLanguage::$core.

Language[edit]

JLanguage[edit]

  • JLanguage::getPluralSufficesCallback() has been removed. Use JLanguage::getPluralSuffixesCallback() instead.
  • JLanguage::_parseLanguageFiles() has been removed. Use JLanguage::parseLanguageFiles() instead.
  • JLanguage::_parseXMLLanguageFiles() has been removed. Use JLanguage::parseXMLLanguageFiles() instead.
  • JLanguage::_parseXMLLanguageFile() has been removed. Use JLanguage::parseXMLLanguageFile() instead.
  • JLanguage::loadLanguage() the argument $overwrite has been removed. It was previously unused.

Registry[edit]

JRegistry[edit]

  • JRegistry::loadXML() has been removed. Use JRegistry::loadString() instead.
  • JRegistry::loadINI() has been removed. Use JRegistry::loadString() instead.
  • JRegistry::loadJSON() has been removed. Use JRegistry::loadString() instead.
  • JRegistry::makeNameSpace() has been removed. No replacement.
  • JRegistry::getNameSpaces() has been removed. No replacement.
  • JRegistry::getValue() has been removed. Use JRegistry::get() instead.
  • JRegistry::setValue() has been removed. Use JRegistry::set() instead.
  • JRegistry::loadSetupFile() has been removed. No replacement.

JRegistryFormatINI[edit]

  • JRegistryFormatINI::stringToObject() the second argument ($option) may not be a boolean anymore.

JRegistryFormatJSON[edit]

  • JRegistryFormatJSON::stringToObject() the second argument ($option) may not be a boolean anymore.

Session[edit]

JSessionStorageDatabase[edit]

  • JSessionStorageDatabase::$_data has been renamed to JSessionStorageDatabase::$data.

Table[edit]

JTable[edit]

  • JTable::canDelete() has been removed.
  • JTable::toXML() has been removed.

Updater[edit]

JUpdate[edit]

  • JUpdate::$_xml_parser has been renamed to JUpdate::$xmlParser.
  • JUpdate::$_stack has been renamed to JUpdate::$stack.
  • JUpdate::$_state_store has been renamed to JUpdate::$stateStore.
  • JUpdate::$_current_update has been renamed to JUpdate::$currentUpdate.

JUpdater[edit]

  • JUpdater::arrayUnique() has been removed. Use JArrayHelper::arrayUnique() instead.

User[edit]

JAuthentication[edit]

  • The constant JAUTHENTICATE_STATUS_SUCCESS has been removed. Use JAuthentication::STATUS_SUCCESS instead.
  • The constant JAUTHENTICATE_STATUS_CANCEL has been removed. No replacement.
  • The constant JAUTHENTICATE_STATUS_FAILURE has been removed. Use JAuthentication::STATUS_FAILURE instead.
  • JAuthentication::$_observers has been renamed to JAuthentication::$observers.
  • JAuthentication::$_state has been renamed to JAuthentication::$state.
  • JAuthentication::$_methods has been renamed to JAuthentication::$methods.

JUser[edit]

  • JUser::getParameters() has been removed.
  • Juser::authorisedLevels() has been removed. Use JUser::getAuthorisedViewLevels() instead.
  • Juser::authorize() has been removed. Use JUser::authorise() instead.
  • JUser::$usertype has been removed.

Utility[edit]

JBuffer[edit]

  • JBuffer::$_buffers has been renamed to JBuffer::$buffers.

JDate[edit]

  • JDate::toMysql() has been removed. Use JDate::toSql() instead.
  • JDate::toFormat() has been removed. Use JDate::format() instead.
  • JDate::setOffset() has been removed.
  • JDate::$offsets has been removed.
  • JDate::__construct() doesn't accept an numeric value for $tz anymore.
  • JDate::$_tz has been renamed to JDate::$tz.

JUtility[edit]

  • JUtility::sendMail() has been removed. Use JMail::sendMail() instead.
  • JUtility::sendAdminMail() has been removed. Use JMail::sendAdminMail() instead.
  • JUtility::getHash() has been removed. Use JApplication::getHash() instead.
  • JUtility::getToken() has been removed. Use JSession::getFormToken() instead.
  • JUtility::isWinOS() has been removed. Use JApplication::isWinOS() instead.
  • JUtility::dump() has been removed. No replacement.
  • JUtility::array_unshift_ref() has been removed. No replacement.
  • JUtility::array_unshift_ref() has been removed. No replacement.

JXMLElement[edit]

  • JXMLElement::data() has been removed.
  • JXMLElement::getAttribute() has been removed. Use SimpleXMLElement::attributes() instead.

JavaScript[edit]

  • Compatibility with MooTools 1.2 has been removed.
  • Forms that have name="adminForm" now also require id="adminForm".
  • checkAll() has been removed. Use Joomla.checkAll() instead.
  • isChecked() has been removed. Use Joomla.isChecked() instead.
  • popupWindow() has been removed. Use Joomla.popupWindow() instead.
  • tableOrdering() has been removed. Use Joomla.tableOrdering() instead.

CMS[edit]

General changes[edit]

  • JUtility is not always loaded. If you need it you have to add jimport('joomla.utilities.utility'); to your code.

Changes to classes[edit]

Component Classes[edit]

  • MenusModelItem::getItem() no longer returns a JObject but a stdClass.

Help[edit]

JHelp[edit]

  • JHelp::createSiteList() the argument $selected has been removed. It was unused.