Jump to content

PageAutocomplete - "Page X is not valid for Y"


blad
 Share

Recommended Posts

Hi! I have a problem with the PageAutocomplete field.

I have made my pages:

-- Clientes (template clientes)
---- Luis Santiago (template cliente) I have the PageAutocomplete field here (cliente_inmuebles) .
---- Second Name
---- Third Name

-- Inmuebles (template inmobiliaria) id=1053
---- Pisos (template tipo_inmueble)
------ Piso nº1 (template propiedad)
------ Piso nº2
------ Piso nº3
---- Casa
------ Casa nº1
------ Casa nº2
------ Casa nº3
 
 
Parent of selectable page(s): Inmuebles.

Template of selectable pages : tipo_inmueble.

Custom selector to find selectable pages: has_parent=1053, template=propiedad. (Without this selector shows nothing)


The list of pages appear and I can select them but when I save I get the error:
 
Page 1058 is not valid for cliente_inmuebles

Link to comment
Share on other sites

I don't know why this keeps happening to me:

ArmSelect - Doesn´t work.

Radios - Doen´t work.

CheckBoxes - Doesn´t work.

SelectMultiple - Doesn´t work.

PageAutocomplete - Doesn´t work.

PageListSelect - Works.

PageListSelectMultiple - Works.

Always gives me the same message:

 

 Session: Page ID is not valid for FIELD;

Please someone help me. Does not anyone had this happened before? I read the topics and tried without results.

Thank you

Link to comment
Share on other sites

And now I can´t access or delete the field.
 

Catchable fatal error: Argument 1 passed to InputfieldPage::___findPagesCode() must be an instance of Page, none given in \wire\modules\Inputfield\InputfieldPage\InputfieldPage.module on line 168
This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged.

I can delete the field from mysql, but I'll make a clean installation. Thanks anyway :)

Link to comment
Share on other sites

@blad - what version of PW are you running?

Looks like there was a bug in 2.4:

https://processwire.com/talk/topic/7315-change-loop-order-without-reordering-items/?p=70460

And scroll down from there for teppo's response:

https://processwire.com/talk/topic/7315-change-loop-order-without-reordering-items/?p=70467

Hope that helps and you don't get that error in the dev version of PW. If you do, then maybe submit an Issue on Github and reference that thread and this one.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...