|
|
|
Notice: Trying to get property of non-object in...
|
|
Date: 2008/08/30 02:47
|
By: kankaanp
|
Status:
|
|
|
Karma: 1  
|
|
Fresh Joomlapolitan  | Posts: 11 |   | |
|
I've got CB 1.2 RC 2 installed on two sites. The other one has no problems and has been so for some time. The other one I'm currently migrating from J!1.0 to J!1.5 and it has this issue:
The site is offline. When I log in from the frontpage the frontpage has this notice in the login module:
Notice: Trying to get property of non-object in /var/www/html/components/com_content/router.php on line 25
Notice: Trying to get property of non-object in /var/www/html/components/com_content/router.php on line 26
Notice: Trying to get property of non-object in /var/www/html/components/com_content/router.php on line 27
Sites debugging option is OFF and servers debugging level at NONE.
When I click some left position menu links I get the same error with one extra line: ... Notice: Trying to get property of non-object in /var/www/html/components/com_content/router.php on line 71 Above the page heading and the pages font gets larger and encoding wrong (scandinavian characters are displayed wrong). In this case the original error message is also displayed in the cb_login module.
The site that has no problems has this configuration: PHP luontipäivä: Linux datamappiwww2 2.6.18-6-amd64 #1 SMP Sun Feb 10 17:50:19 UTC 2008 x86_64 Tietokannan versio: 5.0.67 Tietokannan merkistö: utf8_general_ci PHP-versio: 5.2.6 Web-palvelin: Apache Webpalvelimen PHP-rajapinta: apache2handler Joomla! versio: Joomla! 1.5.6 Production/Stable [ Vusani ] 12-August-2008 22:00 GMT User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fi; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
And the one that has problem is this: PHP luontipäivä: Linux srv6.louhi.net 2.6.9-34.ELsmp #1 SMP Wed Mar 8 00:27:03 CST 2006 i686 Tietokannan versio: 4.1.20 Tietokannan merkistö: utf8_general_ci PHP-versio: 5.1.1 Web-palvelin: Apache Webpalvelimen PHP-rajapinta: cgi-fcgi Joomla! versio: Joomla! 1.5.6 Production/Stable [ Vusani ] 12-August-2008 22:00 GMT User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fi; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Any ideas how to fix this?
Post edited by: kankaanp, at: 2008/08/30 02:50
|
|
The administrator has disabled public write access. |
|
|
|
Re:Notice: Trying to get property of non-object in...
|
|
Date: 2008/08/30 05:31
|
By: p9939068
|
Status:
|
|
|
Karma: 120  
|
|
Platinum Joomlapolitan  | Posts: 728 |   | |
|
Faulty Joomla installation or server configuration. If it's the same server, reinstall Joomla. If not, check server setup. ----- Mike's Projects http://mike.simbunch.com
SIMGallery ParaInvite AJAX CB Connections AJAX Sandbox Profile AdSense Profile URL
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:Notice: Trying to get property of non-object in...
|
|
Date: 2008/08/30 10:06
|
By: kankaanp
|
Status:
|
|
|
Karma: 1  
|
|
Fresh Joomlapolitan  | Posts: 11 |   | |
|
Unzipped Joomla 1.5.6 Full package on my computer and transfered files excluding template folder (modified on server) to the server again. Transfered template/system folder contents to the server. No help there, still getting those errors.
As you can see from my earlier message it is not the same server and it has run J!1.0.15 and CB 1.1 successfully so far. I'm in the middle of migration to J!1.5.6 and CB 1.2 RC 2. To be exact, what am I looking for in the server configuration?
|
|
The administrator has disabled public write access. |
|
|
|
Re:Notice: Trying to get property of non-object in...
|
|
Date: 2008/08/30 10:51
|
By: Rapunzl
|
Status:
|
|
|
Karma: 50  
|
|
Moderator  | Posts: 1046 |   | |
|
Have you run the Community Builder/Tools/Check Database? Jamie Rapunzl Reminisces Owner and Website Administrator / Community Builder and Groupjive Team Member and Moderator _______________________________________________________ Want to speed up the release of CB 1.2 and Plugins? Before posting, please read CB 1.1 Bugs stickies or CB 1.2 Identified Issues and the FAQs and Search the forum and the Web for your error. If not found, post Joomla, CB, PHP, Database and Browser versions, along with the exact error you are getting and results. Fewer posts for the developers to sift through will result in faster releases!
If you're looking for CB plugins, try the Downloads section, Directory (new) section or Joomla Community Builder-specific extensions.
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:Notice: Trying to get property of non-object in...
|
|
Date: 2008/08/30 11:01
|
By: kankaanp
|
Status:
|
|
|
Karma: 1  
|
|
Fresh Joomlapolitan  | Posts: 11 |   | |
|
Jep! Found some errors after the migration (with mtwMigrator). Removed some left-over rows from database tables jos_core_acl_aro ja jos_users with phpMyAdmin as instructed by the check. I have also run user sync several times. Both checks now return clean bill of health.
Here is the section in router.php that the error points to. The rows 25-27 are the ones begining with "$mView...", "$mCatid..." and "$mId..."
| Code: | // get a menu item based on Itemid or currently active
$menu = &JSite::getMenu();
if (empty($query['Itemid'])) {
$menuItem = &$menu->getActive();
} else {
$menuItem = &$menu->getItem($query['Itemid']);
}
$mView = (empty($menuItem->query['view'])) ? null : $menuItem->query['view'];
$mCatid = (empty($menuItem->query['catid'])) ? null : $menuItem->query['catid'];
$mId = (empty($menuItem->query['id'])) ? null : $menuItem->query['id'];
if(isset($query['view']))
{
$view = $query['view'];
if(empty($query['Itemid'])) {
$segments[] = $query['view'];
}
unset($query['view']);
};
|
|
|
The administrator has disabled public write access. |
|
|
|
Re:Notice: Trying to get property of non-object in...
|
|
Date: 2008/08/30 11:14
|
By: p9939068
|
Status:
|
|
|
Karma: 120  
|
|
Platinum Joomlapolitan  | Posts: 728 |   | |
|
Try upgrading PHP to 5.2.6 ----- Mike's Projects http://mike.simbunch.com
SIMGallery ParaInvite AJAX CB Connections AJAX Sandbox Profile AdSense Profile URL
|
|
The administrator has disabled public write access. |
|
|