Drupal is up and running but how do I ...?

bizarre glitch using image.module and taxonomy.module

Hi everyone...

Here is a rather bizarre glitch, at least on my system. I don't know if anyone will be able to replicate it. However, I am running 4.6 in conjunction with the image.module. I have uploaded a picture, and I have created a taxonomy term "The Community" nested underneath Image Gallery (which is the main vocabulary term, i.e., the parent) and I have assigned this picture to that the image gallery entitled "the community".

Once I "tag" the image with the taxonomy term "the community", whenever I view the picture, a small link occurs underneath the picture. The linked text reads "the Community". So far, so good.

Now, here is the weird part:

When I "click" on the linked tag underneath the picture (i.e., the words "the community"), I end up getting sent to this web page:

http://www.ithou.org/taxonomy/term/16

And the following error occurs:

Fatal error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT COUNT(DISTINCT(n.nid)) FROM node n INNER JOIN term_node tn0 ON n.nid = tn0.nid WHERE n.status = 1 AND tn0.tid IN () in /home/ithou/public_html/includes/database.mysql.inc on line 66

However, if I click on the "breadcrumb", i.e., if I click on the word "the community", where it says Home >image Gallery > "the community", I get sent to the web page:

Notify Causing Cron to Error

Hi People,

When I run cron.php while the notify.module is enabled I get the below error:

warning: notify_cron(modules/notify.inc): failed to open stream: No such file or directory in /hsphere/local/home///modules/notify.module on line 23.
warning: notify_cron(): Failed opening 'modules/notify.inc' for inclusion (include_path='.:/usr/local/lib/php') in /hsphere/local/home///modules/notify.module on line 23.

Fatal error: Call to undefined function: _notify_send() in /hsphere/local/home///modules/notify.module on line 24

error message for upload in 4.7

version 4.7 beta 6 here the message error trying to upload a file names "coline", mon_blog is the drupal directory:

file attachement and image upload

I use 4.7, is it possible to automaticaly show an upload attachement file in the blog post? (I mean user upload a file using the "file attachements" function, and instead to have the link in the post to the image the image is printed directly in the post).

thanks

collation craziness--what collation should all of the my SQL tables be set to?

I have been getting some bizarre and crazy errors, related to collation inconsistencies:

For example,

Fatal error: Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=' query: SELECT i.type, i.sid, SUM(i.score/t.count) AS score FROM search_index i INNER JOIN node n ON n.nid = i.sid INNER JOIN users u ON n.uid = u.uid INNER JOIN search_total t ON i.word = t.word WHERE n.status = 1 AND (i.word = 'support') GROUP BY i.type, i.sid ORDER BY score DESC LIMIT 0, 15 in /home/ithou/public_html/includes/database.mysql.inc on line 66

Here's a useful page to list your e-commerce products

If you are coming to terms with the e-commerce modules, you'll be needing this.

create a page with this code in the body and submit as input format "PHP code":

<?php
$sql = 'SELECT e.nid, n.title, e.sku, e.price, e.is_recurring, e.price_interval, e.price_unit, e.price_cycle, e.auto_charge, e.ptype, e.hide_cart_link FROM {ec_product} e  INNER JOIN {node} n where n.nid = e.nid
          ORDER BY e.ptype, n.title';
$result = db_query($sql);
while ($anode = db_fetch_object($result)) {
    
    $items[]= array(l($anode->nid,'node/'.$anode->nid) ,
                    $anode->ptype,
                    $anode->title,
                    $anode->sku,
                    $anode->price,
                    ($anode->is_recurring ? 'Yes' : 'No'),
                    ($anode->price_interval == 0 ? NULL : 
                                                   $anode->price_interval),
                    ($anode->price_unit == '0' ? NULL : $anode->price_unit),
                    ($anode->price_cycle == 0 ? NULL : $anode->price_cycle),
                    ($anode->hide_cart_link  ? 'No' : 'Yes'),
                    l('edit','node/'.$anode->nid.'/edit') 
              );
}   
print theme('table', array('Node','Type','Title', 'SKU','Price','Recur','Intvl','Unit','Cycle','Cart',''), $items);

?>

I'll post this in the PHP snippets in the manual but

Pages

Subscribe with RSS Subscribe to RSS - Post installation