Watchdog reporting server's own ip for all entries

I've been looking around for quite a while regarding this issue. I have a multi-site set up, not sure if that is relevant. But I notice that watchdog is reporting the same ip for every entry, the ip of the server i am hosting on. I looked around for a solution but have not found anyone with a similar problem. I wouldn't bother except that I installed akismet and it thinks that my own server is responsible for spam posts. Help anyone?

A bug found but what to call it or find its origin?

I have been porting a CSS tabless design to Drupal phptemplate system. The layout works but not consistently. It only needs one closing </div> tag to be removed to screw up the layout. I have identified the source of the problem but not what bit of software coding is not printing the html correctly. In the node.tpl.php template the closing tag is stripped out or not printed. This only occurs when first entering/calling the index page of the website or when logging out of admin.

When databases go bump in the night

Woke up this morning with a mess of duplicate entry errors.

Duplicate entry '0-NULL' for key 2 query: INSERT INTO search_index (word, sid, type, score) VALUES ('18', 7431, 'node', 0.766756756757) in /home/username/domains/domain.com/public_html/drupal/includes/database.mysql.inc on line 113.

I ran both those scripts suggested in the above node, but the problem persists and error entries continue to appear.

I noticed also that the search index ceased growing, though cron is running. The most outstanding problem is search is broken, and returns this error on what should be the results page:

* user warning: Got error 134 from storage engine query: CREATE TEMPORARY TABLE temp_search_sids SELECT i.type, i.sid, SUM(i.score * t.count) AS relevance, COUNT(*) AS matches FROM search_index i INNER JOIN search_total t ON i.word = t.word INNER JOIN node n ON n.nid = i.sid INNER JOIN users u ON n.uid = u.uid WHERE n.status = 1 AND (i.word = 'pasta') AND i.type = 'node' GROUP BY i.type, i.sid HAVING COUNT(*) >= 1 in /home/username/domains/domain.com/public_html/drupal/includes/database.mysql.inc on line 113.

New function that's available globally

If you want to write a PHP function that's available globally within your Drupal site, where do you put it -- and how do you declare it?

(I'm NOT referring to developing a module here -- just a site, using Drupal.)

Does it go into template.php? Would that then make it available to such places as Blocks/Pages that use PHP, and to .tpl.php files?

Do you have to declare the function global?

Thanks for any help!

Create a block that lets users select a theme

Hello,

I would like to create a block that either has a drop down list (combo box), or clickable links of available themes.

There is a mobile theme selection module (http://drupal.org/project/mobit) that I haven't tried yet, but from first glance it's not quite what I want.

Any advice or code, please?

Thanks,
-Antikx

Make Primary Links Wrap Sooner

Hello,
I'm trying to tweak the Chameleon theme to display nicer.
I notice that the Primary Links list will stretch across the entire screen and wrap only when it hits the edge of the browser.
See this jpg example: http://www.tyrannozaurus.com/files/ty-primenu-example.jpg
I've been searching the forum and also been poking around trying to find where to alter that so that it wraps at the same length as the content below.
Any advice or code, please?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x