Loading...
 
Skip to main content

Profile 'Dynamic items list' doesn't load in the admin panel & error shown through 'profile tester'

Status
Closed
Subject
Profile 'Dynamic items list' doesn't load in the admin panel & error shown through 'profile tester'
Version
12.x
Category
  • Error
  • Community projects
  • Less than 30-minutes fix
Feature
Profile Manager
Resolution status
Fixed or Solved
Submitted by
Xavier de Pedro
Lastmod by
Xavier de Pedro
Rating
(0)
Description

After an issue reported by a user in dev.t.o, and an example produced in the corresponding show.t.o site, I decided to create the corresponding profile to be able to test dynamic items list easily from now onwards in different tiki versions, etc. That's the rationale of this profile:
https://profiles.tiki.org/Dynamic+items+list

After I added the sections with data ("Objects in Products Tracker" and "Objects in Service Tracker"), the profile doesn't load any more in the Tiki admin panel for profiles.

And when I added that yaml code in tiki-admin.php?page=profiles&cookietab=3 > "Profile Tester", then I got this error message:

Copy to clipboard
Fatal error: Call to a member function getRequiredProfiles() on a non-object in /var/www/trunk/lib/core/Tiki/Profile.php on line 479


Any tips?


And if I apply only the 2 sections defining the tracker and tracker fields (no sample data), then I get:

Copy to clipboard
An error occurred: Unknown objects are referenced: tiki://local/Test#products, tiki://local/Test#products_name, tiki://local/Test#products, tiki://local/Test#products_name, tiki://local/Test#products_version

After I removed the $ at the end of the objects defined elsewhere, then I ended up with this error through the Profile tester and only the section with trackers and tracker fields (no tracker data):

Copy to clipboard
Fatal error: Call to a member function getRequiredProfiles() on a non-object in /var/www/xavi-9794-4911/lib/core/Tiki/Profile.php on line 479
Workaround

replacing many

$profileobject:

with the profile name:

$Dynamic_items_list_demo:


and fixing one error of a missing variable service_serviceServiceName. (or something like that)

Importance
5
Easy to solve?
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4911
Created
Tuesday 12 November, 2013 13:07:51 UTC
by Xavier de Pedro
LastModif
Wednesday 20 November, 2013 11:33:04 UTC


Show PHP error messages