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

SQL Syntax Error on category module install

I have had Drupal installed for a few days now, no problems. Running on Linux server, MySQL 4.1. I just installed category module (4.7.0 download), and now when I try to access any content as admin, authenticated or anonymous user, I get one or more of user warnings below, indicating some sort of syntax error when trying to access the category and category node tables.

I've searched the forums but don't seem to see an answer to this one. The closest case is where the category tables don't exist. They are there, but what I appear to be getting is a syntax error. Please help!

user warning: 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 '(n.nid), n.title FROM category c INNER JOIN category_node r ON c.cid = r.cid INN' at line 1 query: SELECT c.*, r.DISTINCT(n.nid), n.title FROM category c INNER JOIN category_node r ON c.cid = r.cid INNER JOIN category cn ON c.cnid = cn.cid INNER JOIN node n ON c.cid = n.nid INNER JOIN node cnn ON cn.cid = cnn.nid WHERE n.status = 1 AND n.moderate = 0 ORDER BY cn.weight, cnn.title, c.weight, n.title in /var/www/html/doadance/drupal/includes/database.mysql.inc on line 120.

user warning: 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 '(n.nid), n.title FROM category c INNER JOIN category_node r ON c.cid = r.cid INN' at line 1 query: SELECT c.*, r.DISTINCT(n.nid), n.title FROM category c INNER JOIN category_node r ON c.cid = r.cid INNER JOIN category cn ON c.cnid = cn.cid INNER JOIN node n ON c.cid = n.nid INNER JOIN node cnn ON cn.cid = cnn.nid WHERE n.status = 1 AND n.moderate = 0 ORDER BY cn.weight, cnn.title, c.weight, n.title in /var/www/html/doadance/drupal/includes/database.mysql.inc on line 120.

Creating extra Taxonomy metadata/Information

First of all i'd like to say how impresed I am with drupal. Keep up the good work.

I'm seeking input / advice / direction from more experienced drupal users on this. I've been browsing around drupal.org for a little more than a week and I think i've figured out how i'd like to structure my site. I would like some advice on if my ideas are good, or if i should be looking into other options.

Let's say I have a community based website about films and actors. I'm thinking about categorizing my nodes with a forced category like "Gossip/Reviews/Trailers/Events". There will also be non-required categories for each node like "Movie Title/Actor". I want these sub-categories terms to have extra meta data attached to them that is editable. for actors it would be a bio, for movies it would be "length, rating". I would like this extra meta data to be editable by the community and approved by a moderator.

Overview:

  • You click on my tagadelic and choose brad pitt
  • You're forwarded to the brad pitt taxonomy page which has a small editable area with brads bio.
  • Underneath his bio you're presented with links to:
    • Brad Gossip
    • Movie Reviews with Brad in them
    • Movie Trailers with Brad in them
    • Events which will have Brad at them

What's an easy way to create "content-types" that will be automatically tagged with my required "section" category?

Search no longer works-log full of errors like

When I search my site, it doesn't give me any results, even on words I KNOW are there (searched them before). But in my logs, I have multiple copies of this:

preg_replace(): Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /usr/home/sites/sitename/web/modules/search.module on line 257.

Every user or guest that searches generates this error, multiple times it seems.

Role for adding users, but not able to modify admin account

Hi,

I have an education site where i need some "admin" personnel to be able to add other users (ie add students), and change their roles (ie add them to classes), however i dont want these personnel to be able to modify/accidently delete the admin account. A secondary concern is that they shouldnt be able to modify the teachers accounts either (although that would be have to be a solution based on roles im guessing).

Poll creates odd HTML/CSS? Results graph is broken

Hi all, I'm running 4.7rc3 (upgrading this weekend) and the Poll feature seems to have some issues with the HTML/CSS results graph. The graph does not show up where it's supposed to, instead it shows up way at the bottom without any text near it. Has anyone seen this problem before? Safari and Firefox both show this problem.

An example of the behavior is at: http://www.unixville.com/opensolaris/tshirt

Thanks.

-M

Adding stylesheet to RSS feed

Trying to add a stylesheet to rss.xml feed. In node.module, i have the following code,

...
$output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$output = "<?xml-stylesheet type=\"text\/css\" href="rss.css"?>\n";
...

rss.css is located in drupal root directory. i have added '\' to text/css to avoid parse error.
Still i am getting parse error here. What's wrong here ?

Pages

Subscribe with RSS Subscribe to RSS - Post installation