Closed (fixed)
Project:
Block Inject
Version:
7.x-1.2-alpha2
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
23 Apr 2014 at 07:29 UTC
Updated:
26 May 2014 at 13:58 UTC
Jump to comment: Most recent
Hi,
When I activate the token filter for input on content the inject block disappears. When I remove the token filter from the input format the inject block reappears. Unfortunately I need both at the same time and that is currently not possible.
Kind regards
Comments
Comment #1
upchuk commentedHey there,
That's interesting. I will take a look at the problem with the token if you promise to test it out after and if I find a good fix :)
PS: I don't think this is a bug, so I will change to task.
Thanks!
Comment #2
lennart commentedYes, of course I'll test :)
Comment #3
upchuk commentedHey there,
I fixed the problem and now you shouldn't have any more problems with the token filter module. I included this change in the alpha-3 release which should be available soon for you to update.
Let me know if you have any other problems.
Thanks!
Comment #5
lennart commentedHi,
I tried to update so I could test as promised and use the module and token filter at the same time, but when I tried to update I got this error:
---
Additional uncaught exception thrown while handling exception.
Original
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'bi.bi_condition' in 'field list': SELECT bi.region AS region, bi.node_type AS node_type, bi.id AS id, bi.node_name AS node_name, bi.bi_condition AS bi_condition FROM {block_inject} bi ORDER BY region ASC; Array ( ) in block_inject_get_regions() (line 324 of /home/www/folkets.dk/sites/all/modules/block_inject/block_inject.module).
Additional
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'bi.bi_condition' in 'field list': SELECT bi.region AS region, bi.node_type AS node_type, bi.id AS id, bi.node_name AS node_name, bi.bi_condition AS bi_condition FROM {block_inject} bi ORDER BY region ASC; Array ( ) in block_inject_get_regions() (line 324 of /home/www/folkets.dk/sites/all/modules/block_inject/block_inject.module).
---
Comment #6
upchuk commentedHey there,
I know, sorry about that. Update with drush or wait for alpha4 which will come very soon with the fix.
D
Comment #7
lennart commentedThanks,
I'll wait for alpha4 :)
Comment #8
upchuk commentedThe new release is out. I updated #2269905: Recent update alpha 3 issue with the relevant info.
Cheers!
Comment #9
lennart commentedThanks, but when I go to:
/admin/structure/block-inject
I get this error:
The website encountered an unexpected error. Please try again later.
I tried to uninstall the module and reinstall again. But I still get the same error.
Should I try to delete the block inject tables in the database and the install again? Any other entries for variables etc I should delete in the database?
Kind regards,
Lennart
Comment #10
upchuk commentedHey there,
Did you run update.php?
Comment #11
lennart commentedYes, I did. But since the update stopped half way through on the alpha3 maybe something went wrong. I'm not sure.
Comment #12
upchuk commentedHell if I know...I did test updates after I reproduced the broken update...
What does your Apache error log say? Do you have the Drupal dblog turned on?
I would uninstall the module, remove the files, clear the database tables and the block_inject row in the system table and try again. Of course, all this locally to test out the problem..
I did not manage to break it so bad :)
Comment #13
lennart commentedI'm on a web host so I can't check apache logs.
That's what I'll do :)
Comment #14
lennart commentedWeird. I can't make it work now, neither with or without token filter. I uninstalled the module, deleted the corresponding tables, erased the entry from the system table. And reinstalled - but still got the same error.
I'll just wait and see for now. If other people have no trouble, it must be something specific to my configuration.
Thanks for your efforts to help :)
Comment #15
upchuk commentedI know what the problem was...a bug slipped in that was not showing itself when updating versions only when installing from scratch. I fixed it and put out a new release (alpha5). You can wait until D.O. creates the tarball and then you can install that one. It should finally be ok...
Lemme know how it works..
Thanks for testing and reporting!
Comment #16
lennart commentedThanks. That solved the error. But unfortunately there is now another really strange problem.
After I define a block inject region and assign it to some node types I go to the block configuration page. But the page will not allow me to put any block in the block inject region. Whether i drag it there or use the drop down menu on the block I cannot do it. Really strange.
The region is there, but no block can be put in it.
Comment #17
upchuk commentedHm...I see there is some sort of problem with the drag and drop, but when I assign using the dropdown and save the block settings, the block gets assigned to the region and the injection takes place normally.
Did you try using the dropbown and then saving the block settings?
UPDATE: I found the problem. Another tiny bug got introduced at some point...will get it fixed with the next release but won't rush it for now. Can you confirm that saving the block settings will assign the block successfully to the region (using the dropdown)?
Thanks!
Comment #18
lennart commentedYes. I did try that. Unfortunately for me NEITHER the drop-down menu on the block NOR the drag and drop works.
In either case the block is just returned to the unassigned region. I cannot place it in the block inject region.
I'll just wait for the next update :)
Comment #19
upchuk commentedDarn...I couldn't reproduce the dropdown thing though...I pushed the changes and they should be in the dev version so try installing that and see if it works.
Thanks!
Comment #20
lennart commentedWith 7.x-1.2-alpha5+2-dev I can now finally place blocks in the inject region, but nothing shows up in the node. I'll just wait and see if others have the same problem. I tried with different themes.
Comment #21
upchuk commentedThat's very strange. Don't worry, I'll look into it to see if I can reproduce.
D
Comment #22
lennart commentedI really appreciate all you do :)
Comment #23
upchuk commentedFound the error, fixed it and pushed it to the dev branch. So it should be there soon :)
Let me know if there are any other problems.
Thanks!
Comment #24
lennart commentedThat did it. Thank you!
Comment #25
upchuk commentedGreat, fixes will be included in the next release.
Thanks!
If you find other problems, open new issues please. Thanks a lot.