Hi,

After an automatic update i get lines of errors from the quotes module:

Notice: Undefined property: stdClass::$quotes_citation in quotes_preprocess_node() (line 1047 of
***/sites/all/modules/quotes/quotes.module).
Notice: Use of undefined constant COMMENT_NODE_OPEN - assumed 'COMMENT_NODE_OPEN' in theme_quotes_block() (line 1745 of ***/sites/all/modules/quotes/quotes.module).
Notice: Use of undefined constant COMMENT_NODE_OPEN - assumed 'COMMENT_NODE_OPEN' in quotes_node_view() (line 926 of ***/sites/all/modules/quotes/quotes.module).

Any ideas? I'm using the latest Drupal 7

Kind regards,
Henk

Comments

ctmattice1’s picture

On the first error, visit the general setting under config, double check your preferred setting and save the page. If that does not correct it, repeat the process for any blocks you have created.

On the COMMENT_NODE_OPEN error google it, it has been a known issue and there is a solution on drupal for it but will require you to use phpmyadmin or equivalent. If your search comes up empty I'll see what I can find.

aerosoleon’s picture

I had a similar error I went into the block that the quote was in and checked "Show Citation" Fixed Errors for me.

henkit’s picture

Thanks for the answers!

@ ctmattice1: I can not find the COMMENT_NODE_OPEN solution you are referring to, could you please help me a little more? The solution for the first error worked.
@leonrainbow: Didn't work for me...thanks anyway!

ctmattice1’s picture

@henkit Do you have the comment module enabled?

henkit’s picture

No, don,t have the comment module installed....

ctmattice1’s picture

Know where the problem lies. I'll push out a new dev release this weekend to take care of these bugs. When I originally said there was a answer on drupal I thought this to be a different issue where comments were enabled.

ctmattice1’s picture

Status: Active » Closed (fixed)

Fixed in latest dev release, feel free to re-open

reycoy’s picture

Hello guys,
I'm getting the same kind of error:
Notice: Use of undefined constant COMMENT_NODE_OPEN - assumed 'COMMENT_NODE_OPEN' en include() (line 28 /Applications/MAMP/htdocs/../../node/node.tpl.php).
Any suggestions about how to fix it?
Thanks in advance.

ctmattice1’s picture

@reycoy

The error is in displaying a node. Do you have the comments module enabled and what version of drupal 7 are you on?

reycoy’s picture

Hello and thanks for your interest.
The comments module is disabled and my drupal version is 7.20
Any ideas?. Thanks in advance

ctmattice1’s picture

The problem stems from comment module being disabled. You could try to enable the comment module then disable it again, might take care of the problem, might not, probably won't. The problem is that there is a themplate_preprocess function that is not functioning as it should but I'm not sure this is a core issue or whether it is a contrib module or theme causing the error. What is happening is that the preprocess function is looking for COMMNET_NODE_OPEN which is a defined php constant setup by the comment module but since the comment module is disabled it doesn't get set.

I can attempt to isolate where it's coming from but would need some more information. The fix will be to modify the template_preprocess function in your theme which should do the trick to eliminated your issue but won't take care of the root cause of the problem unless I can trace it to its source. If I can then the proper maintainers can determine the best approach to fixing the bug. It's kind of an elusive bug as I never could pinpoint exactly what the root cause was when I was having issues with the quotes module.

To attempt to trace the issue this is the information i'll need:

Is this a fresh install or an update from a prior D7 or D6 site.
what theme are you using
what core modules are enabled
what contirb modules have you installed?

reycoy’s picture

Thanks ctmattice1 for you help and first of all sorry for the delay in this answer.
I'm using a template called vivid that unfortunately has a lot of issues. No support from the author at all. :-(
http://themeforest.net/item/vivid-deep-into-theming/2536528
In terms of the list of modules, the theme comes with lots of them pre-installed. Is there a way (maybe drush) to copy and paste them for you?, to be honest I don't know how to do it in an easy way.

ctmattice1’s picture

To do that, the easiest way I know of would be either email me a tarball or allow me FTP access to the theme. However, that should be done outside drupal.org

what is the url of your site and do you have a contact form on it?