This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

"Duplicate entry...." error but record still created in Node table

Hi,

I'm learning to code in PHP/Drupal..need some basic info ..please.

I'm developing my first custom node module. It writes a record to the table, academic_info for each node created. The primary key consists of multiple fields.

I see a "duplicate entry....." error is generated in Drupal when the user attempts to create a node/record that already exists in table, academic_info. However, I observed that a record is still created in the node table for the node that was submitted.

Flickr not writing to MySql, making errors on "My Account" page

I have my Flickr random pics block working, but the "My Account" page comes up with tons of errors:

Audio Module Problem

Guys I'm newbie here in drupal, I use the audio module and I get the following errors:

* The directory files does not exist.
* The selected file /tmp/audio/light.mp3 could not be uploaded, because the destination files/audio is not properly configured.
* The following errors were encountered, preventing the ID3 tags from being saved: filename is undefined in getid3_writetags

I'm using 5.1 version... Can somebody help me why i get these errors? Thanks a lot!

SQL Errors (Please Help)

I get an error that says:
Warning: Table 'messcast_drpl1.url_alias' doesn't exist query: SELECT COUNT(pid) FROM url_alias in /home/messcast/public_html/includes/database.mysql.inc on line 172

How can I fix this?

Search with drop down selection list

I am trying to customise the Search. or tripsearch AKA SQL Search .modules that users can select the area of teh search from a drop down list e.g. search in forums, search in blogs, search in profiles etc.

Custom Exposed Filters for CCK Computed Field in a side block?

I am trying to filter my view by a computed field. My main issue is that the computed field only offers these operators:

  • Is Greater Than
  • Is Greater Than Or Equals
  • Is Equal To
  • Is Not Equal To
  • Is Less Than Or Equals
  • Is Less Than

and then a text field. I am looking to make the text field a drop down. I have been able to do this by creating a block using the following code and displaying on the corresponding view:

<form id="views-filters-block" method="get" action="http://localhost/acedesigns.com/capablitites/framing/mouldings/blacks">
<div class="form-item-0">
 <select id="edit-filter0" class="form-select" name="filter0"><option value="**ALL**">-all-</option><option value="black">black</option><option value="silver">silver</option><option value="gold">gold</option><option value="brown">brown</option><option value="white">white</option><option value="other">other</option></select>
</div>
<div class="form-item1">
 <select id="edit-filter0" class="form-select" name="filter1"><option value="**ALL**">-all-</option><option value="yes">yes</option><option value="no">no</option><option value="maybe">maybe</option></select>
</div>
<div class="form-submit">
<input type="submit" class="form-submit" value="Submit" id="edit-submit"/>
</div></form>

I then hide the regular filter created by the view with:

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions