Hi,
I created on CPR and used it to show access to premium content on a paid role subscription, while showing a joing now to get premium access. Perfect!

On creating another CPR block I typoed on the machine readable name. On first attempt I named it Professional Payment Buttons Block ..... Well I got an error. Then I renamed it professional _payment_buttons_block .... with a typo space after L and before P. Got another error. Then I nailed naming it professional_payment_buttons_block. Right!

Next I went to blocks page and attempted to insert it into the content area of page.

Yes I realize I should have clicked configure at this stage. named the BLOCK and etc ....

I got this error:

user warning: Duplicate entry 'garland-block_cpr-professional_payment_buttons_blo' for key 2 query: INSERT INTO blocks (module, delta, theme, status, weight, region, custom, throttle, visibility, pages, title, cache) VALUES ('block_cpr', 'professional_payment_buttons_block', 'garland', 0, 0, '', 0, 0, 0, '', '', 1) in /home/myWebSiteName/public_html/includes/common.inc on line 3576.

So I realized I had to config the block.

I did that and tried reinserting it into content section of page. I got the same error. So, I though to delete it, start ALL OVER and do it fricking fright this time. Well, it will not delete! I get this error on deletion attempt:

warning: Illegal offset type in isset or empty in /home/identsrf/public_html/sites/default/modules/block_cpr/block_cpr.admin.inc on line 326.

Can you help please?

Thank you!

Comments

odisey’s picture

Title: Unable to delete CPR block » Unable to delete CPR block FOLLOW UP

I created a test_delete CPR block. I made no typos creating it. After I created it I attempted to delete it straight away. I got this error:

warning: Illegal offset type in isset or empty in /home/identsrf/public_html/sites/default/modules/block_cpr/block_cpr.admin.inc on line 326.

I went to blocks page and configured this block, naming it, setting permissions, etc .... and inserted it into content for testing. It works - no error on inserting.

The typoed block described in post one will not publish, nor will it delete. AND, I just discovered when I attempt to configure it on the blocks page the block is not saving name, settings, permissions, etc ....

2 Issues:

- The CPR block in first post seems to be floating in the db with no way to rename it or configure it as a block.
- CPR blocks of any kind will not delete.

Thanks!

odisey’s picture

FOUND CLEAR FIX!

Disabled module

Deleted module from FTP FileZilla access

(Note - no remove link was found for Drupal Uninstall function)

Deleted all instances from db
cpr_block search - all instances deleted
name_of_every_cpr_block_I_had_created search - all instances deleted
name_of_every _typoed_block_I_had_created search - none found

check - repair db - through Php my admin

flushed cache

ran update.php

ran cron

Reinstalled module and enabled

Content STILL ALIVE when navigation to CPR Blocks config page!

Save nothing on that page!

Return to db

Research:

cpr_block search - all instances deleted from CACHE ONLY --- Remember NOT to delete anything related to module
that is installed or you will break it!!!

name_of_every_cpr_block_I_had_created search - all instances deleted - period!
name_of_every _typoed_block_I_had_created search - none found!

You will find instances in blocks table, blocks_roles table, and also in cache tables after reinstall of module as described.

Remember NOT TO DELETE IMPORTANT MODULE FILES!

Apparently some instances of the garbage to delete only become visable on database search when the module is
installed. Crazy I know. I do not know why. But I deleted EVERYTHING when the module was uninstalled. Then, I reinstalled
the module and garbage cache and garbage table info mysteriously appeared!

Good luck!