4.7 Module Upgrade, getting warning: implode(): Bad arguments error

I upgraded to 4.7 over the weekend, including refactoring some of the modules I had written.

One is for a module about procedures, it has a _block function in it. The overall module works, but when I use the block I get this error on the "create content" pages. I suspect this is a bug in my code - since other blocks are setup and not throwing this.

warning: implode(): Bad arguments. in /home/vividselfadmin/public_html/modules/node.module on line 363.
user warning: You have an error in your SQL syntax near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /home/vividselfadmin/public_html/includes/database.mysql.inc on line 124.

Full Block code is:

<?php
/**
* Sidebar block for procedure, with callout info
*/

function procedure_block($op='list', $delta=0) {
// listing of blocks, such as on the admin/block page
if ($op == "list") {
$block[0]["info"] = t("Procedure Sidebar");
return $block;
} else if ($op == 'view') {

$node = node_load(arg(1)); //get the current page node info
if ($node->type != 'procedure') {
return;
}

anyway to have TinyMCE recognize PHP pages

Is there any setting/config to let TinyMCE recognize that a pge is PHP code (like if pahe content starts with php tag.

I just started using Tiny and all was well until i went to edit one of my existing pages which was PHP code - Tiny corrupted the code. Even if after first going to edit page i switched off "rich text" it was too late.

I now have default set to not use Tiny.. but most of my pages are simple HTML so it is a pain to have to turn Tiny on every time.

Thought maybe someway to do this...

anyway to have TinyMCE recognize PHP pages

Is there any setting/config to let TinyMCE recognize that a pge is PHP code (like if pahe content starts with "<?php"

I just started using Tiny and all was well until i went to edit one of my existing pages which was PHP code - Tiny corrupted the code. Even if after first going to edit page i switched off "rich text" it was too late.

I now have default set to not use Tiny.. but most of my pages are simple HTML so it is a pain to have to turn Tiny on every time.

Thought maybe someway to do this...

"Illegal mix of collations"-error before running upgrading

The other day I was upgrading a copy of a Drupal 4.6.3 powered webportal, and came across the following error message in the upgrade wizard before running the upgrade:

ERROR MESSAGE
*****************************

Warning: Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation 'like' query: SELECT * FROM access WHERE status = 1 AND type = 'host' AND LOWER('ip.ad.re.ss') LIKE LOWER(mask) in /drupal_folder/includes/database.mysql.inc on line 124

Warning: Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation 'like' query: SELECT

* FROM access WHERE status = 0 AND type = 'host' AND LOWER('ip.ad.re.ss') LIKE LOWER(mask) in /drupal_folder/includes/database.mysql.inc on line 124 Drupal database update

* warning: Cannot modify header information - headers already sent by (output started at /drupal_folder/includes/database.mysql.inc:124) in
/drupal_folder/includes/common.inc on line 143.

* warning: Cannot modify header information - headers already sent by (output started at /drupal_folder/includes/database.mysql.inc:124) in
/drupal_folder/includes/common.inc on line 143.

*****************************
END OF ERROR MESSAGE

Is this something to be concerned about, does this require any action?
How can I fix this issue? How to avoid this during future upgrades?

Make a quick $75 - turn my design into a drupal theme

Hello,

I need a custom drupal theme to look like the screenshots at
http://teckcrew.com/pdm/t2form.gif
http://teckcrew.com/pdm/home.gif

We need something with a splash page as the home page, menus at the top with a 3 column layout. It needs to look as close to the screenshots as possible.

We need something within a week or so.

Thanks,
Clint

CCK no line breaks and HTML code printed instead of used

Using Drupal CVS.

New lines are created fine in standard node types but for CCK its ignored (So the content in a given field is continuous).

Also tried to use TinyMCE (CVS) with CCK and all HTML tags are printed with no text styling taking place, i.e.

This is <strong>my</strong> example message... and all the text just continutes and continues, even if when editing it, there is a line break or new paragraph. My new paragraph....

Any ideas on how to fix this?

Cheers,

Alex

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x