"Warning: Invalid Argument..." and "Fatal Error.." Messages - Joomla! Forum - community, help and support
hi all,
i running older version of joomla - believe 1.7, can't access site verify. using mysql 5.0 through godaddy. i'll try brief thorough problem!
i had website built me in joomla transferred hosting godaddy. although edit through administrator login downloaded joomla through godaddy platform , problem started. download caused current database replaced new download database replacing website. changed settings refer original db started getting error messages when visiting site. fearing may lose site downloaded original site files computer (as had ever been stored online) , republished them through filezilla. error messages below.
i happy copy , paste relevant code each .php file below hoping better understanding of why may have happened. have not done .php editing until issue difficult me identify why these errors have appeared.
i wonder if file did not upload through filezilla , there information missing causing these errors.
any appreciated!
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/plugin/helper.php on line 59
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/plugin/helper.php on line 59
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/application/menu.php on line 63
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/includes/application.php on line 465
fatal error: call member function get() on non-object in /home/content/51/9403651/html/templates/beez_20/index.php on line 119
error messages corresponding .php code below:
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/plugin/helper.php on line 59
public static function getplugin($type, $plugin = null)
{
$result = array();
$plugins = self::_load();
// find correct plugin(s) return.
if (!$plugin)
{
foreach ($plugins $p)
{
// right plugin?
if ($p->type == $type)
{
$result[] = $p;
}
}
}
else
{
line 59 foreach ($plugins $p)
{
// plugin in right group?
if ($p->type == $type && $p->name == $plugin)
{
$result = $p;
break;
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/plugin/helper.php on line 59
same above (why error message appear twice?)
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/application/menu.php on line 63
protected static $instances = array();
/**
* class constructor
*
* @param array $options array of configuration options.
*
* @since 11.1
*/
public function __construct($options = array())
{
// load menu items
$this->load();
line 63 foreach ($this->_items $item)
{
if ($item->home)
{
$this->_default[trim($item->language)] = $item->id;
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/includes/application.php on line 465
if (!$templates = $cache->get('templates0'.$tag)) {
// load styles
$db = jfactory::getdbo();
$query = $db->getquery(true);
$query->select('id, home, template, s.params');
$query->from('#__template_styles s');
$query->where('s.client_id = 0');
$query->where('e.enabled = 1');
$query->leftjoin('#__extensions e on e.element=s.template , e.type='.$db-->quote('template').' , e.client_id=s.client_id'); (line 465)
fatal error: call member function get() on non-object in /home/content/51/9403651/html/templates/beez_20/index.php on line 119
</style>
<?php endif; ?>
<![endif]-->
<!--[if ie 7]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie7only.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script type="text/javascript">
var big ='<?php echo (int)$this->params->get('wrapperlarge');?>%';
var small='<?php echo (int)$this->params->get('wrappersmall'); ?>%';
var altopen='<?php echo jtext::_('tpl_beez2_altopen', true); ?>';
var altclose='<?php echo jtext::_('tpl_beez2_altclose', true); ?>';
var bildauf='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/plus.png';
var bildzu='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/minus.png';
var rightopen='<?php echo jtext::_('tpl_beez2_textrightopen', true); ?>';
var rightclose='<?php echo jtext::_('tpl_beez2_textrightclose', true); ?>';
var fontsizetitle='<?php echo jtext::_('tpl_beez2_fontsize', true); ?>';
var bigger='<?php echo jtext::_('tpl_beez2_bigger', true); ?>';
var reset='<?php echo jtext::_('tpl_beez2_reset', true); ?>';
var smaller='<?php echo jtext::_('tpl_beez2_smaller', true); ?>';
var biggertitle='<?php echo jtext::_('tpl_beez2_increase_size', true); ?>';
var resettitle='<?php echo jtext::_('tpl_beez2_revert_styles_to_default', true); ?>';
var smallertitle='<?php echo jtext::_('tpl_beez2_decrease_size', true); ?>';
</script>
</head>
<body>
(this line 119!)
<div id="all">
i running older version of joomla - believe 1.7, can't access site verify. using mysql 5.0 through godaddy. i'll try brief thorough problem!
i had website built me in joomla transferred hosting godaddy. although edit through administrator login downloaded joomla through godaddy platform , problem started. download caused current database replaced new download database replacing website. changed settings refer original db started getting error messages when visiting site. fearing may lose site downloaded original site files computer (as had ever been stored online) , republished them through filezilla. error messages below.
i happy copy , paste relevant code each .php file below hoping better understanding of why may have happened. have not done .php editing until issue difficult me identify why these errors have appeared.
i wonder if file did not upload through filezilla , there information missing causing these errors.
any appreciated!
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/plugin/helper.php on line 59
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/plugin/helper.php on line 59
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/application/menu.php on line 63
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/includes/application.php on line 465
fatal error: call member function get() on non-object in /home/content/51/9403651/html/templates/beez_20/index.php on line 119
error messages corresponding .php code below:
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/plugin/helper.php on line 59
public static function getplugin($type, $plugin = null)
{
$result = array();
$plugins = self::_load();
// find correct plugin(s) return.
if (!$plugin)
{
foreach ($plugins $p)
{
// right plugin?
if ($p->type == $type)
{
$result[] = $p;
}
}
}
else
{
line 59 foreach ($plugins $p)
{
// plugin in right group?
if ($p->type == $type && $p->name == $plugin)
{
$result = $p;
break;
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/plugin/helper.php on line 59
same above (why error message appear twice?)
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/libraries/joomla/application/menu.php on line 63
protected static $instances = array();
/**
* class constructor
*
* @param array $options array of configuration options.
*
* @since 11.1
*/
public function __construct($options = array())
{
// load menu items
$this->load();
line 63 foreach ($this->_items $item)
{
if ($item->home)
{
$this->_default[trim($item->language)] = $item->id;
warning: invalid argument supplied foreach() in /home/content/51/9403651/html/includes/application.php on line 465
if (!$templates = $cache->get('templates0'.$tag)) {
// load styles
$db = jfactory::getdbo();
$query = $db->getquery(true);
$query->select('id, home, template, s.params');
$query->from('#__template_styles s');
$query->where('s.client_id = 0');
$query->where('e.enabled = 1');
$query->leftjoin('#__extensions e on e.element=s.template , e.type='.$db-->quote('template').' , e.client_id=s.client_id'); (line 465)
fatal error: call member function get() on non-object in /home/content/51/9403651/html/templates/beez_20/index.php on line 119
</style>
<?php endif; ?>
<![endif]-->
<!--[if ie 7]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie7only.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script type="text/javascript">
var big ='<?php echo (int)$this->params->get('wrapperlarge');?>%';
var small='<?php echo (int)$this->params->get('wrappersmall'); ?>%';
var altopen='<?php echo jtext::_('tpl_beez2_altopen', true); ?>';
var altclose='<?php echo jtext::_('tpl_beez2_altclose', true); ?>';
var bildauf='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/plus.png';
var bildzu='<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/minus.png';
var rightopen='<?php echo jtext::_('tpl_beez2_textrightopen', true); ?>';
var rightclose='<?php echo jtext::_('tpl_beez2_textrightclose', true); ?>';
var fontsizetitle='<?php echo jtext::_('tpl_beez2_fontsize', true); ?>';
var bigger='<?php echo jtext::_('tpl_beez2_bigger', true); ?>';
var reset='<?php echo jtext::_('tpl_beez2_reset', true); ?>';
var smaller='<?php echo jtext::_('tpl_beez2_smaller', true); ?>';
var biggertitle='<?php echo jtext::_('tpl_beez2_increase_size', true); ?>';
var resettitle='<?php echo jtext::_('tpl_beez2_revert_styles_to_default', true); ?>';
var smallertitle='<?php echo jtext::_('tpl_beez2_decrease_size', true); ?>';
</script>
</head>
<body>
(this line 119!)
<div id="all">
cmthoreau wrote:i running older version of joomla - believe 1.7, can't access site verify. using mysql 5.0 through godaddy. i'll try brief thorough problem!
welcome joomla forum!
joomla 2.5 has file version number in /libraries/cms/version/version.php
maybe 1.6 & 1.7 have version.php file on location too.
it contains exact version number of joomla site.
please upgrade latest joomla version within same series first before trying solve errors older version. possible bugs might have been solved in meantime, , it's waste of time trying solve issues caused because of non-updated software...
joomla 1.6 + 1.7 short term support versions , no longer supported.
joomla 2.5 current long term support version, , latest version in 2.5 series joomla 2.5.8: http://www.joomla.org/download.html
backup before upgrading...
Comments
Post a Comment