Recent Topics

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

started by on Jul 18, 2015 – Last touched: May 24, 2017

Jul 18, 2015 15:33    

# I get an error at the top of my page www.miq.es

Notice: Trying to get property of non-object in /www/htdocs/w00d45e9/blogs/inc/_core/model/dataobjects/_dataobjectcache.class.php on line 346

Notice: Trying to get property of non-object in /www/htdocs/w00d45e9/blogs/inc/_core/model/dataobjects/_dataobjectcache.class.php on line 346

it seems this: (I deleted the cache before updating to speed up things! ALSO I use several B2EVO in one database with diferent table prefix to save valuable databases on my host, eventually it is that they all need to be same version B2EVO now ??)

/**
* Add a dataobject to the cache
*/
function add( & $Obj )
{
global $Debuglog;

ll($Obj->ID) ) // value 0 is used by item preview
{
$Debuglog->add( 'No object to add!', 'dataobjects' );
return false;
}

// fplanque: I don't want an extra (and expensive) comparison here. $this->cache[$Obj->ID] === $Obj.
// If you need this you're probably misusing the cache.
if( isset($this->cache[$Obj->ID]) )
{
$Debuglog->add( $this->objtype.': Object with ID '.$Obj->ID.' is already cached', 'dataobjects' );
return false;
}

// If the object is valid and not already cached:
// Add object to cache:
$this->cache[$Obj->ID] = & $Obj;
// Add a reference in the object list:
$this->DataObject_array[] = & $Obj;
// Add the ID to the list of IDs
$this->ID_array[] = $Obj->ID;

return true;
}

/**
* Instantiate a DataObject from a table row and then cache it.
*
* @p

Jul 18, 2015 18:06

seems it is a like a windows 8 disaster the version 6
Why are the menues changed?
You want to make b2evo more difficult?

I find a lot of unwanted changes and will never consider a version 6 update again
maybe better go to wordpress now!

Support might be better!

Jul 18, 2015 18:41

@ingeniero wrote earlier:

seems it is a like a windows 8 disaster the version 6
Why are the menues changed?
You want to make b2evo more difficult?

I find a lot of unwanted changes and will never consider a version 6 update again
maybe better go to wordpress now!

Support might be better!

## How can I roll back to version 5.2.2 stable ?

Jul 19, 2015 14:32

@ingeniero we'll fix these issues very quickly but please confirm which exact version you're using.

Also please tell use which menu changes are a problem for you. Screenshots with arrows and comments like 'I'm missing this or that here' may be a good/quick/easy way to tell us what you need.

For rolling back to v5, it's like any other software: you need to restore a backup.

Jul 19, 2015 19:15

### I hope this status copy in German is helpfull enough,,, the Menues I will comment in a separate thread.

b2evo
b2evolution-Version
6.6.0-stable veröffentlicht am 07/17/15
You are running the latest stable version of b2evolution.
Medienverzeichnis
Ok - /www/htdocs/w00d45e9/blogs/media/
Installationsordner
Nicht gelöscht - /www/htdocs/w00d45e9/blogs/install/
Für maximale Sicherheit empfehlen wir Ihnen, Ihren /blogs/install/-Ordner zu löschen, sobald Sie die Installation oder das Upgrade abgeschlossen haben.
Datenbank zurücksetzen
Verboten
Internal b2evo charset
utf-8
Blog count
7
Caching
Cache-Verzeichnis
Ok - /www/htdocs/w00d45e9/blogs/_cache/
Cache folder size
21 MB
Allgemeines Caching
Enabled
Einstellungen für Blog-Cache
7 enabled /7 blogs
Zeit
Serverzeit
07/19/15 - 19:11:44
GMT-/UTC-Zeit
07/19/15 - 17:11:44
b2evolution-Zeit
07/19/15 - 19:11:44
MySQL
MySQL-Version
5.5.43-nmm1-log
MySQL UTF-8 support
Ja
PHP
PHP running as USER:
www-data (uid 33)
PHP running as GROUP:
www-data (gid 33)
PHP version
5.2.17-nmm2
PHP register_globals
Aus
PHP allow_url_include
An
Dieses Feature ist bekannt dafür, die Bentzung von Hacking-Exploits für jede PHP-Applikation zu ermöglichen, wenn es aktiviert ist.
b2evolution enthält zusätzliche Maßnahmen, um davon nicht betroffen zu sein. Für maximale Sicherheit empfehlen wir Ihnen jedoch dieses PHP-Feature zu deaktivieren.
Wenn möglich, ändern Sie diese Einstellung in Ihrer php.ini-Datei auf allow_url_include = Off oder fragen Sie Ihren Host um Rat.
PHP Magic Quotes
An (magic_quotes_gpc)
PHP fügt zusätzliche Anführungszeichen zu allen Eingaben hinzu. Dies führt zu unnötigem Mehraufwand.
Wenn möglich, ändern Sie diese Einstellung in Ihrer php.ini-Datei auf magic_quotes_gpc = Off oder fragen Sie Ihren Host um Rat.
PHP upload_max_filesize
200M
PHP post_max_size
200M
post_max_size sollte größer als upload_max_filesize sein.
PHP memory_limit
256M
PHP max_execution_time
30 Sekunden
PHP forced max_execution_time
600 Sekunden
PHP mbstring extension
Geladen
PHP XML extension
Geladen
PHP IMAP extension
Geladen
PHP opcode cache
none
Mit der Benutung einer Opcode-Cache können Sie PHP-Scripts schneller laufen lassen, indem eine "zusammengeführte" (Opcode) Version der Scripte zwischengespeichert wird, anstatt alles bei jedem Laden einer Seite erneut zusammenzuführen. Es stehen mehrere Opcode-Caches zur Verfügung. Wir empfehlen APC.
GD Library (Bildverarbeitung)
GD Library-Version
bundled (2.0.34 compatible)
GD JPG Support
Lesen/Schreiben
GD PNG Support
Lesen/Schreiben
GD GIF Support
Lesen/Schreiben
GD FreeType Support
Ja

Jul 19, 2015 19:33

After editing the user with the error message here
the error message moved up on first line in page

Jul 19, 2015 19:40

I also would like to get rid of this security feature:

Jul-19 19:36:57 error core A redirection to an external URL http://made-in-quality.de/?disp=msgform was blocked for security reasons. Empty object ID
Jul-19 19:24:10 error core A redirection to an external URL http://computerdoktor.costa-sol.de/?disp=login&redirect_to=%2F%3Fdisp%3Duser%26user_ID%3D3&return_to=%2F%3Fdisp%3Duser%26user_ID%3D3&source=cannot%20see%20user was blocked for security reasons. Empty object ID
Jul-19 19:24:06 error admin core A redirection to an external URL http://marcoplast.com/internet-mit-skydsl-in-spanien?disp=page&title=internet-mit-skydsl-in-spanien&more=1&c=1&tb=1&pb=1 was blocked for security reasons. Empty object ID
Jul-19 19:17:34 erro

Jul 19, 2015 19:52

@amoun wrote earlier:

Have you tried moving v6 to an archive folder and then ftp 5.2.2?

EDIT I had similar problems: see comment on http://rogerlovejoy.net/blog/b2evo.php/upgrade-o-6-4-3?page=4 it may help direct you to a solution

EDIT and http://forums.b2evolution.net/fatal-error

EDIT On my machine I only see the problem in the right column. Try and remove the avatar widget and see what happens.

it depends, when I am logged in as Admin it is up 1st line logged out or other user errormessage is only in sidebar
seems it hast to do with user admin because I get these messages when I try to edit user!

Jul 19, 2015 20:00

The error seems to be related to my ADMIN profile, but I cannot delete or edit users!

Jul 19, 2015 20:06

Please note that the user menue has no paper bin here!

Jul 19, 2015 22:54

Thank you. We'll fix that on Monday.

Jul 20, 2015 11:43

i will try that now and edit the 5 files!

Jul 20, 2015 12:41

I have edited the 5 files manually but I get a diferent error now, maybe related to y wrong bracket in line 166 where I am not shure...

>` Parse error: syntax error, unexpected T_ELSE in /www/htdocs/w00d45e9/blogs/inc/files/model/_filerootcache.class.php on line 166`

attached the manual edited file as txt maybe you can check it ?


Attachments:

Jul 20, 2015 12:47

the new error appears in front and backoffice
can you please help me ?

Jul 20, 2015 23:18

@ingeniero you made a wrong edit. Your line 162 is wrong. Delete it and you should be fine (compare with github again if needed)

You can also download complete files from GitHub if needed.

Jul 21, 2015 01:33

Thank you !
you are right!

I copied and pasted the complete content and it seems it works

actually I didn't find a way to download the complete .php file files at GitHub but copy and paste works ok too
just the line numbers changed!

Jul 23, 2015 17:20

its working well now
Thank you very much!
the changes are in the stable download included now?

If I update all my other b2evolution installations to 6.6.1 will it work fine?

Jul 23, 2015 17:23

Yes, of course all fixes are included in the latest release.

May 24, 2017 07:46

@ingeniero I would like to assist you with the issue that you're having. From the information that you provided it seems like you're having a problem with access to certain FileRoots. Could you please elaborate under what circumstances does the issue come up? It would be very helpful if you could provide the steps to replicate the issue and also the user's and the collection's permission settings if possible.

This post has 1 feedback awaiting moderation...


Form is loading...

powered by b2evolution – This forum is powered by b2evolution CMS, a complete engine for your website.