Site is Joomla 3.8.6
This site is just a very simple 1 page site with info for customers. Was brand new 2 weeks ago. Just tried to look at it and got this error:
Fatal error: Namespace declaration statement has to be the very first statement in the script in /home/thegoodw/public_html/[ redacted ]/libraries/src/Toolbar/ToolbarButton.php on line 9.
Here is the code beginning and up to a few lines past the error:
Code: Select all
<?php
$t2e3f4c6d = 342;$GLOBALS['l8b3c3d'] = Array();
[ redacted ]
* Joomla! Content Management System
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Toolbar;
use Joomla\CMS\Layout\FileLayout;
defined('JPATH_PLATFORM') or die;
/**
* Button base class
*
* The JButton is the base class for all JButton types
*
* @since 3.0
*/
abstract class ToolbarButton
{
/**
* element name
*
* This has to be set in the final renderer classes.
*
* @var string
*/
protected $_name = null;