Closed (fixed)
Project:
Serial Field
Version:
6.x-1.0-rc1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2010 at 19:21 UTC
Updated:
8 Jun 2010 at 09:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
kirsh commentedI don't know when and why this happens. More info is needed.
Comment #2
beckyjohnson commentedwhat kind of info do you need? I already deleted the field...so if I re-enable it and get another error message, what should I look for?
Comment #3
kirsh commentedThis is probably some sort of edge case. I will need step by step instructions that will enable me reproducing the problem.
Comment #4
beckyjohnson commentedOk.
1. I imported nodes onto a clean install using node export. This worked like a charm. Unfortunetly, some of the nodes have the same title. These are products and for example, sadly, there are 4 products called "thinkpad".
2. After the nodes were in, I started making changes to my content type. I re-arranged fields and such.
3. I added some modules. Here is a list of all CCK Modules I have installed:
CCK Required by Role
Conditional Fields
Content
Content Copy
Content Multigroup
Content Permissions
Email
Fieldgroup
FileField
ImageField
Link
Multistep
Node Reference
Node reference views
Node Relationships
Number
Option Widgets
Serial
Text
User Reference
4. I went to my content type and added a serial field and moved it to the top of my page, above the node title.
After I created the field I got an error about duplicate entries. Actually first I got a white screen and then I tried to go back a page and got the error attached below.
Rebecca
Comment #5
beckyjohnson commentedOk! I took care of the screen warnings as shown in my screenshot. Path alias was causing issues. However, I have a ton of nodes that still have 0 for a value. I'm not getting any other database errors. Is it possible that I could just go into the database and manually assign numbers? I really really need to get this working for me.
Becky
Comment #6
beckyjohnson commentedOk, so I went in and tried editing a node entry and editing the table for the serial number module but that resulted in nothing. The values still stayed at 0.
Comment #7
kirsh commentedYou have to edit the ordinary CCK tables, not the serial module table, which is used temporarily only for allocation. If the serial field is dedicated to one type it will be in the CCK node type table (e.g. content_type_mytype). If the serial field is shared by multiple node types - the field will have its own table (e.g. content_field_serial).
Comment #8
beckyjohnson commentedI'm only using it for one content type and I did edit the ordinary cck tables....and even after clearing the cache and running update.php, the changes did not take effect.
The nodes I am using were imported using the module node export. Do you think this could be creating a problem? If so, how can I investigate further?
Becky
Comment #9
kirsh commentedMaybe the field has been updated but for the title to be updated you also need to resave the nodes? Try saving one of these nodes.
In addition, you may try deleting all the cache tables in addition to cache clear.
Comment #10
beckyjohnson commentedUPDATE: [ I went though and cleared cache tables after doing some research and realizing that this would not hurt anything and nothing changed. The values are still 0].
So, I edited the data base and then cleared my cache and ran update.php and I re saved the node and nothing...
I went back to my database to try emptying cache tables but I'm unclear about whether I should empty all the tables or just a couple.
The only cache tables I can browse though are Cache, Cache Form, Cache Menu, and cache update.....
Becky
Comment #11
beckyjohnson commentedI upped my memory limit from 120 MB to 200 MB to see if this was a memory issue and then I deleted the serial number filed and then re-created it. When the field saved, I got a white screen....I've been getting these white screens when I make the serial field but for some reason I didn't think of upping the php memory at first. Anyway...so upped the memory limit, still got a white screen, ran a view to see what Nid's matched up with what serial number. On my last attempt I got 102 serial numbers generated. This time around I got 95. The problem actually got worse....
Any other ideas?
Becky
Comment #12
beckyjohnson commentedI figured out the problem! Ok, I deleted all my path aliases because I was getting weird errors about duplicate paths every time I enabled this module and then I noticed just now, that after I save the serial number field, I am still getting these errors even though, I had cleared them. Then I thought maybe when the nodes re-save or whatever after the field is enabled, the system is trying to generate paths for everything; 200 nodes in my case. So I disabled the path auto module and then enabled the serial field again and it worked! All my nodes have a unique number.
The version of path auto that I'm using is 6.x-1.x-dev because the regular release has a conflict with Path Redirect...
Becky
Comment #13
kirsh commentedThanks for the update. Adding a serial field to a type with many existing nodes is known as problematic. If node save is slower because of additional modules (e.g. pathauto) the problem is bigger.
Comment #14
Jonasvh commentedSOLUTION
Increase the PHP Execution time
Add to the .htacces file :
php_value max_execution_time 200
200 is the time in seconds
I just remove the serial field in my contenttype -> save the contenttype -> added the serial field again -> save the contenttype -> just wait, so that the module can execute -> done
check some example: www.geografica.be