php fatal error
First unread post • 5 posts
• Page 1 of 1
php fatal error
Hi,
I use jumi since several years now;
lately I installed the joomla 1.5.22 (latest) for a fresh install.
Also installed the latest jumi.
now, I have a BIG problem.
when a logged in user browses the site, all is working correct.
when a visitor is browsing, I get on all my jumi pages the following error :
PHP Fatal error: Call to a member function get() on a non-object in ......
I get this error in several Joomla proper modules and in template modules.
The lines are allways the same :
$user =& JFactory::getUser();
$aid = $user->get('aid', 0);
The error is on the second line.
Now, I can of course test if $user is an object, but that means changing Joomla internal code,
which i consider a very bad idea (upgrades !)
So, does anybody has an idea what is happening ?
By the way : access level for all pages / modules / menu's is Public, so that's ok.
Thanks in advance,
Steven
I use jumi since several years now;
lately I installed the joomla 1.5.22 (latest) for a fresh install.
Also installed the latest jumi.
now, I have a BIG problem.
when a logged in user browses the site, all is working correct.
when a visitor is browsing, I get on all my jumi pages the following error :
PHP Fatal error: Call to a member function get() on a non-object in ......
I get this error in several Joomla proper modules and in template modules.
The lines are allways the same :
$user =& JFactory::getUser();
$aid = $user->get('aid', 0);
The error is on the second line.
Now, I can of course test if $user is an object, but that means changing Joomla internal code,
which i consider a very bad idea (upgrades !)
So, does anybody has an idea what is happening ?
By the way : access level for all pages / modules / menu's is Public, so that's ok.
Thanks in advance,
Steven
- StevenFr
- Posts: 5
- Joined: Tue Feb 15, 2011 3:04 pm
Re: php fatal error
Hi,
I see lots of people are reading my post.
Nobody has any idea about wht is happening ?
Mybe this helps:
if i put in my browser :
http://www.maisons-de-france.com/index. ... &Itemid=37
directly, I get the same effect.
(This is what my php script does)
So, obviously joomla does not accept this url anymore (since ...).
And, if you agree, this is a joomla thing ?
However, other direct url's inside joomla are accepted !
Steven
I see lots of people are reading my post.
Nobody has any idea about wht is happening ?
Mybe this helps:
if i put in my browser :
http://www.maisons-de-france.com/index. ... &Itemid=37
directly, I get the same effect.
(This is what my php script does)
So, obviously joomla does not accept this url anymore (since ...).
And, if you agree, this is a joomla thing ?
However, other direct url's inside joomla are accepted !
Steven
- StevenFr
- Posts: 5
- Joined: Tue Feb 15, 2011 3:04 pm
Re: php fatal error
I think i need to explain a bit more :
I have an application in a module position. If the user selects a menu item this application starts and shows itself (in Joomla) in the appropriate position. If the user then presses (for example) a button (form) in that application an other php script is loaded in the same position. and so on.
To achieve this i wrote a small function that is called fisrt (with as jumy parameter from joomla the first screen (=php script) to show.
Like this :
Then in the different modules called, i do the proper logic to display something to the user, and i do thse lines :
So that i go on via the first routine.
It's when the form is executed that the error appears;
Hope this helps.
Steven
I have an application in a module position. If the user selects a menu item this application starts and shows itself (in Joomla) in the appropriate position. If the user then presses (for example) a button (form) in that application an other php script is loaded in the same position. and so on.
To achieve this i wrote a small function that is called fisrt (with as jumy parameter from joomla the first screen (=php script) to show.
Like this :
- Code: Select all
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
function get_return_url()
{
if ($query_string = $_SERVER['QUERY_STRING'])
{
$return = 'index.php?' . $query_string;
}
else
{
$return = 'index.php';
}
// an url starts with index.php now
// converting & to & for xtml compliance
$return = str_replace( '&', '&', $return );
return "http://".$_SERVER['SERVER_NAME']."/".$return;
}
// this is the main loop to select a page (it's filename is in _tb_fname POST variable (a hidden field in the caller))
if(!isSet($_POST['_tb_fname'])) // if its there, execute it, else execute the parm given my the caller
{ // else we do nothing, since we donnot know what !
if (!empty($jumi))
{
foreach ($jumi as $key => $value)
{
require_once($value);
}
} else {
echo "<p>No filename parameter present</p>";
}
} else { // we have a file name, lets do it
require_once($_POST['_tb_fname']);
}
?>
Then in the different modules called, i do the proper logic to display something to the user, and i do thse lines :
- Code: Select all
$Rurl = get_return_url();
...................
<form action="<?php echo $Rurl; ?>" method="post">
......................
<input type="hidden" name="_tb_fname" value="me_scripts/giteview.php">
.............................
So that i go on via the first routine.
It's when the form is executed that the error appears;
Hope this helps.
Steven
- StevenFr
- Posts: 5
- Joined: Tue Feb 15, 2011 3:04 pm
Re: php fatal error
Hi,
In the mean time I asked this question on the joomla forum. From the answers i got, and further
research, I conclude that this realy is an issue with Jumi. There must have been some resent changes that blok this kind of usage.
A joomla ace told me to look here : http://joomlacode.org/gf/project/joomla ... em_id=6515
This principle should describe the error that is somewhere in the jumi code.
Now, i saw that a lot of changes went into the new (1.5 joomla) release.
so please, does anyone have any idea ?
In the mean time I asked this question on the joomla forum. From the answers i got, and further
research, I conclude that this realy is an issue with Jumi. There must have been some resent changes that blok this kind of usage.
A joomla ace told me to look here : http://joomlacode.org/gf/project/joomla ... em_id=6515
This principle should describe the error that is somewhere in the jumi code.
Now, i saw that a lot of changes went into the new (1.5 joomla) release.
so please, does anyone have any idea ?
- StevenFr
- Posts: 5
- Joined: Tue Feb 15, 2011 3:04 pm
Re: php fatal error
I find (also looking at other posts here) that support is now zero....
Not one reaction from Edvard here.
Maybe someone else should take over the plug-in (Martin ???
)
Thanks,
Steven
Not one reaction from Edvard here.
Maybe someone else should take over the plug-in (Martin ???

Thanks,
Steven
- StevenFr
- Posts: 5
- Joined: Tue Feb 15, 2011 3:04 pm
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests