Ok Every thing looks okay exept that under create content or define new relationship type there is no longer a selection for a relationship type node type. If I click on create a relation= node/add/content_relation_type, from a subform field settings, than it just brings me to all content type selections = page, book, cck types, etc. but there is no longer a selection for relationm type as before
in 0.2 and 0.1 versions all three modules haved been installed from read me text

Note: the same applies when looking in node types to create = no relationship type

Comments

mcreature’s picture

Note: looks like this bug was introduced in the 0.25 version and still exists.

mcreature’s picture

Found out what the Relation type problem was
I tried re installing the subform module with Drupal update and module save plus clearing the catch and no such luck, than I tried using Deval to re-install the subform module and bingo,
I was able to get the relationship node type to appear again as before.
After that I set up a relationship type as described in the help I setup a subform field selected a type
than clicked on save and went back and edited the views field, which now shows up and works, then I selected a few nodes from the views select list and on submission got this error...

array_walk() [function.array-walk]: Unable to call 5.9158313726E-317() - function does not exist in in the /home/animalso/public_html/insectsoftheworld/474/includes/common.inc on line 512.

after this I was still able to see the new nodes I had selected but after going back two edit my newly created content and selecting another field I got a 500 server arror =
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again. URL: http://insectsoftheworld.net/474/node/16/edit

I than clicked back to go to the admin page for the content type with the subform field, and on the subform field page I unselected the select box for Continue editing after changes. (normal Drupal behavior is to view a node after any saved change) to see if that change may make a difference,
and after saving. and going back to the front page to see if my newly created nodes had changed I found the display list of selected nodes had reverted back to not showing up in the nodes with subform fields.

I guess this is about three separate issues, but instead creating the three issues now I wanted to see if this might relate to possibly only one issue. before clogging up the subform field issue queue any more.

Just let me know what you think. If you would like I can create a admin user account for you on my test site so you may also test and see these issues for your self as that may be much faster and more explicit.

mcreature’s picture

here are some log messages, this may help.

Type page not found
Date Friday, December 8, 2006 - 19:50
User creature
Location http://insectsoftheworld.net/474/modules/subform/persistent_fieldset.js
Referrer http://insectsoftheworld.net/474/node/16/edit
Message modules/subform/persistent_fieldset.js not found.
Severity warning
Hostname 71.237.137.117

Type php
Date Friday, December 8, 2006 - 18:39
User creature
Location http://insectsoftheworld.net/474/node/add/content_species
Referrer http://insectsoftheworld.net/474/node/add/content_species
Message array_walk() [function.array-walk]: Unable to call 5.9158313726E-317() - function does not exist in /home/animalso/public_html/insectsoftheworld/474/includes/common.inc on line 512.
Severity error
Hostname 71.237.137.117

MrTaco’s picture

Assigned: Unassigned » MrTaco

I have to admit i'm baffled.

The following was all done on php 4.4.4 and mysql 5.0.22:

In the last 45 minutes i deleted my entire testbed drupal install and the database it had previously pointed at.

Then i reinstalled drupal with freshdownloads of drupal 4.7.4, cck at http://drupal.org/files/projects/cck-4.7.x-1.0.tar.gz, views at http://drupal.org/files/projects/views-4.7.x-1.2.tar.gz and subform at http://drupal.org/files/projects/subform-4.7.x-0.26.tar.gz .

I enabled all cck modules, views and views_ui, and all the subform modules, all at the same time (in one step).

I then created a Car type and a Person type, and then created an instance of the "relation type" and set it to link Cars and People.

I then added a subform to the person type and told it to operate off that newly defined relation type, and show the type listed on the left side of the relation (cars).

I then went to node/add/content_person and added a person with associated car.

All of these steps worked perfectly, with no errors.

Then to try to cause errors, i tried things like: asking a subform to view the wrong side of a relationship, asking a subform to view the "none" relationship, and attempting to edit a "selection view" before the subform it is based off of is saved. After each of these things, I again went to node/add/content_person and added content. None of these actions caused any errors.

So, I'm stumped.

mcreature’s picture

OK I am going to investigate this further when I have a bit more time, via starting over from scratch
with a new every thing and only including the relavent modules. Pluss I will try a few other things..
So far he differences I can see are our versions of php = your mysql is ( 5.0.22 ) my SQL is ( 4.1.21 )
Since the errors I am getting are either do to server config or sql errors, I think this would be a good place to start. It may also be that I have not set my catch to more than a standered default yet = is 8 mgs, and I will also set this to 32mgs as some times this can couse server errors if the pages are utilizing to much catch resources.

Any other ideas? I will setup a admin account for you when I am finished and if there are still probs so you may experement if you would like?

MrTaco’s picture

yeah, i think you're right about the mysql version difference being the source of the issue

i'm in the process of setting up a new development testbed for myself, of php 4.4.4 and mysql 4.1, and i will do all future development on this testbed

i'm hoping that anything i get working in that environment, will also work seamlessly in any newer environment

MrTaco’s picture

i'm now doing all my development in:

php 4.4.2
mysql 4.1.15
apache 2.2

and besides adding nested subform support, i've also validated the module as E_ALL compliant (which should improve its stability on old versions of php)

i've just released subform version 0.30. let me know if u receive any errors in a clean system install (clean meaning no previous install of subform in this system)

MrTaco’s picture

ah, ok i'm now able to replicate your array_walk error

when i have large content type definitions, and thus the form post to get them and their nested children posted is large, i'm getting an array_walk leads to out of memory error in php 4.4.2 inside the _fix_gpc_magic common.inc function (this is a function in drupal that escapes strings in return form posts)

i've logged the debug_backtrace() of it, and the last call right as it crashes is this:

    [0] => Array
        (
            [function] => _fix_gpc_magic
            [args] => Array
                (
                    [0] => asdfasdfasdf
                    [1] => value
                )

        )

as you can see, there's nothing wrong with the function call

so i did some reading, and it looks like in php 4.3.0 and 5.0.16 there is a known issue with array_walk crashing and returning an out of memory error or segfault

i'm running 4.4.2, which does not have the same report, but i wouldn't be surprised if its the same issue

now, how exactly to deal with this?

MrTaco’s picture

for background see: http://drupal.org/node/82524

i've reported this new instance at http://drupal.org/node/102809

MrTaco’s picture

and for reference, array_walk is also known bad (segfault-able) in php 5.0.16

mcreature’s picture

Hi Mrtaco, Still getting same errors with 0.30 version, etc. I just sent you an email with site specs, details and other info. I will continue looking into this, though you now have a new admin account if you would like to check things out on my server with the devel helper module.

mcreature’s picture

I think I see what you meen, I will make smaller names for the content types, is this what you ment?.

mcreature’s picture

Status: Active » Fixed

hmm that did not work though I did have a similar prob with the relativity module, I will keep trying.

In the mean time I think this issue queue is a bit confusing.
I see a few separate issues hear, the first is - Relation type node type no longer exists in node selection which seems to be fixed in the newer Subform module version 4.7.x-0.30 so maybe marking this issue fixed and starting a new issue may be a good idea = if no one ells is experiencing this issue?

In any case I will start a new issue.

mcreature’s picture

Status: Fixed » Active

oops did not meen to change this to fixed already thats your call so changing it back to active

casey’s picture

Status: Active » Closed (fixed)