When I'm pressing the export button on a node I'm getting the following warning message.

warning: get_class() called without object from outside a class in /sites/all/modules/ctools/includes/export.inc on line 679.

I posted this issue in the ctools "issues" and one of the maintners told me to look here at first if this warning is only caused by node_export and not the ctools itself.

Thanks,

CommentFileSizeAuthor
#3 screen_grab_1.gif34.43 KBfbouchard

Comments

danielb’s picture

I don't know what you're talking about... :/ Can you confirm which version of Node export you have, and what exactly have you done?

fbouchard’s picture

Version: 6.x-2.9 » 6.x-2.24
fbouchard’s picture

StatusFileSize
new34.43 KB

My Bad about the version. I attached a screenshot of the warning message. The export seem to work but I'm not sure that I should receive this warning message every time I press export.

danielb’s picture

Status: Active » Postponed (maintainer needs more info)

There is no ctools integration or calls to anything like get_class() in Node export 6.x-2.24.

danielb’s picture

Additionally Node export 6.x-2.24 doesn't provide a 'button' on a node, it provides a tab (menu item). Are you sure you aren't using some functionality from a different module? (Although your screen shot does show a tab)

danielb’s picture

I tried to reproduce this. No luck.

fbouchard’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Hi danielb,

I'm really sorry that I wasted your time with this issue. I found this morning that during the migration of our servers the IT guy install php 5.3.x on the server instead of 5.2.x. The warning was cause by this.

Sorry again,

Thanks,

The node export is a really great tool, i'm really happy to see that is working again ^_^

dwaine’s picture

Hello,

I've verified this issue exists on a PHP 5.3.2 environment. I've also verified that the exact same codebase and content on a PHP 5.2.6 environment does _not_ throw a warning. FWIW, I'm using the node_export version 6.x-3.2.

A quick search indicates that the PHP 5.3.x version of get_class() has changed slightly.