| 
Welcome, Guest

Notice: Trying to get property of non-object in...
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Notice: Trying to get property of non-object in...

Notice: Trying to get property of non-object in... 3 years, 8 months ago #72670

  • kankaanp
  • kankaanp
  • OFFLINE
  • Junior Boarder
    Junior Boarder
  • Posts: 26
  • Karma: 1
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 topic has been locked.

Re:Notice: Trying to get property of non-object in... 3 years, 8 months ago #72676

  • p9939068
  • p9939068
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 741
  • Karma: 118
Faulty Joomla installation or server configuration. If it's the same server, reinstall Joomla. If not, check server setup.
-----
Mike Feng
Creator of SIMGallery, SIMAnswers, and ParaInvite
www.simbunch.com
twitter.com/simbunch
The topic has been locked.

Re:Notice: Trying to get property of non-object in... 3 years, 8 months ago #72687

  • kankaanp
  • kankaanp
  • OFFLINE
  • Junior Boarder
    Junior Boarder
  • Posts: 26
  • Karma: 1
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 topic has been locked.

Re:Notice: Trying to get property of non-object in... 3 years, 8 months ago #72689

  • Rapunzl
  • Rapunzl
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 3297
  • Karma: 108
Have you run the Community Builder/Tools/Check Database?
Jamie (Rapunzl)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | Our templates | Paid Subscriptions | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction
The topic has been locked.

Re:Notice: Trying to get property of non-object in... 3 years, 8 months ago #72690

  • kankaanp
  • kankaanp
  • OFFLINE
  • Junior Boarder
    Junior Boarder
  • Posts: 26
  • Karma: 1
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..."
	// 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 topic has been locked.

Re:Notice: Trying to get property of non-object in... 3 years, 8 months ago #72692

  • p9939068
  • p9939068
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 741
  • Karma: 118
Try upgrading PHP to 5.2.6
-----
Mike Feng
Creator of SIMGallery, SIMAnswers, and ParaInvite
www.simbunch.com
twitter.com/simbunch
The topic has been locked.
  • Page:
  • 1
  • 2
Time to create page: 0.87 seconds