Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

Error with API demo/PHP sample number 3

Avatar

Ehemaliges Community-Mitglied

I'm trying to execute demo php samples and when I run demo/03_update_home_collection.php then I get the following error: Array ( [code] => BadRequestException[message] => Attempting to set a bogus version= )

What's that?

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Employee

Hi,

Is the project that you set up a 1 top-level nav collection or 2 top-level nav collection? I am assuming that it is the latter. You can find out by going to the Project Settings rail > select the project > edit > go to App Navigation tab.

If so, please update the $collection_home_name variable (located in 20150810-DPS-Content Producer Service API-Examples/demo/demo_parameters.php) to either one of the following:

  • $collection_home_name = "topLevelTabletContent"; // for tablet collection
  • $collection_home_name = "topLevelPhoneContent"; // for phone collection

The demo will only target one of the top-level collections. You can also find this info in 20150810-DPS-Content Producer Service API-Examples/demo/README.md.

Lösung in ursprünglichem Beitrag anzeigen

3 Antworten

Avatar

Korrekte Antwort von
Employee

Hi,

Is the project that you set up a 1 top-level nav collection or 2 top-level nav collection? I am assuming that it is the latter. You can find out by going to the Project Settings rail > select the project > edit > go to App Navigation tab.

If so, please update the $collection_home_name variable (located in 20150810-DPS-Content Producer Service API-Examples/demo/demo_parameters.php) to either one of the following:

  • $collection_home_name = "topLevelTabletContent"; // for tablet collection
  • $collection_home_name = "topLevelPhoneContent"; // for phone collection

The demo will only target one of the top-level collections. You can also find this info in 20150810-DPS-Content Producer Service API-Examples/demo/README.md.

Avatar

Ehemaliges Community-Mitglied

mike-o thank you very very much. I felt ashamed for not seeing this in the readme. Everything worked fine now.

Avatar

Employee

No worries, please let us know if you encounter any further issues/questions.