Hey folks,

i just want to report a major bug since i have updated from version 2-dev to 3-alpha.
Iam using Drupal7.

Since i upraded, i cannot access the settingspage anymore. Any down or upgrade since now is not possible to configure the module anymore.

Also i always got the following message at the end when iam updating drupal: "Refusing to initialize CER when global MAINTENANCE_MODE flag is set."

How can i clean up messi things?
Any help is appreciate.

Thank you very much and keep it going!

Comments

aze2010’s picture

Issue summary: View changes
phenaproxima’s picture

What is the error message that you get when going to the settings page?

And as for the MAINTENANCE_MODE thing...as of the latest dev, that will only be displayed once during update.

aze2010’s picture

hi and thank you for your rapidly reaction.

there is only a white page with "Unexpected error has occurred..."
the MAINTENANCE_MODE thing comes EVERYtime, when i'm using "Update"-function in drupal.

i hope, you can help me out of this. A downgrade stil doesent fix this thing.

phenaproxima’s picture

Please check your watchdog logs. "Unexpected error" means that something threw an exception during update -- please post that.

aze2010’s picture

"Unexpected error" comes only, when i try to access the "settings-page" of the module "cer".

phenaproxima’s picture

I understand that, but if you look in Watchdog, you should see the exception logged properly. I need that in order to diagnose this. You can get to your Watchdog log under Admin > Reports > Recent Log Messages.

aze2010’s picture

okay..here it comes:

"Exception: Cannot get instance of invalid plugin node:contenttype:field_ref_links. in CerField::getPlugin() (Zeile 271 von /var/www/sites/all/modules/cer/includes/CerField.inc)."

phenaproxima’s picture

Status: Active » Needs review
StatusFileSize
new844 bytes

Ahhh...I think I know what's happening here -- I think CER is failing to check for deleted field instances. A total oversight on my part.

Please try the attached patch, and let me know if it fixes your problem. If it does, I will commit it right away.

aze2010’s picture

i patched the file, i cleaned the cache, but the error stil exists like above :(

phenaproxima’s picture

Status: Needs review » Needs work

Hmmm...that's strange. Can you send me dumps of your field_config, field_config_instance, and cer database tables?

aze2010’s picture

i will go to lunch now, but i will do it later. How can i send you those dumps?
Thanks in advanced!

P.s: Which Version should i use for those test right now?

phenaproxima’s picture

If you have phpMyAdmin, you can easily generate the dumps (use the "export" tab) -- just export those tables as CSV files or something similar and I'll see if I can't figure out what's going on.

P.S. Your best bet is to use the latest dev.

aze2010’s picture

okay thank you..i know how to export, but how can i send this dumps to you? email oder pn?

How can i clean up "cer" modul and re-install? But i dont want to loose my references.

Many greetings and i will come back later.
Thank you!

phenaproxima’s picture

No problem, I'm happy to help!

You can e-mail me the table dumps: djphenaproxima AT gmail DOT com

It sounds like there's no real "mess" here -- from what you've told me, it doesn't sound like your database is corrupted -- but if you want to, it's OK to uninstall CER and re-install it. Your existing references will stay in place. (Just be sure to dump the contents of the cer table so you can re-insert all your presets.)

  • Commit 2c33d7f on 7.x-3.x by phenaproxima:
    _cer_collect_fields_of_type() will now ignore deleted fields and field...
aze2010’s picture

here i am again :-)

okay, now i get it!!! =)
old and non existend field-entries in the table "cer" causes the error!

i manualy deleted those field from the table over "phpmyadmin". no it all works!

Thank you very much for your support and keep it going for this great module!

Many, many greetings from germany.
Axel

phenaproxima’s picture

Status: Needs work » Closed (fixed)

Thanks, Axel. I have built in a few safeguards against CER trying to use old/deleted fields, so hopefully the previous commit will address these issues for everyone.

aze2010’s picture

i just want to thank you for your valuable, great work & support!!!
Thank you very much! :-)