Fatal error, syntax help
-
Hi,
I’m hoping this plugin is what I’m looking for, however I seem to be doing something wrong. I keep getting the following error:
Fatal error: Cannot use object of type WP_Error as array in C:\wamp\www\website\wp-content\plugins\json-content-importer\class-json-content-importer.php on line 153
my data is as below:
[
{
“Id”: “aa27041d-3ea6-e411-a371-005056aa1796”,
“Title”: “Testing 16-02-15”,
“StartDate”: “2015-02-16T09:00:00Z”,
“EndDate”: “2015-02-16T16:00:00Z”,
“MaxRegistrations”: 20,
“RegistrationCount”: 12,
“Url”: “https://mywebsite.com/event-information/?Id=aa27041d-3ea6-e411-a371-005056aa1796&mon=2&yr=2015”
},
{
“Id”: “23eb0781-3ea6-e411-a371-005056aa1796”,
“Title”: “Test 16-02-15”,
“StartDate”: “2015-02-16T09:00:00Z”,
“EndDate”: “2015-02-16T16:00:00Z”,
“MaxRegistrations”: 15,
“RegistrationCount”: 12,
“Url”: “https://mywebsite.com/event-information/?Id=23eb0781-3ea6-e411-a371-005056aa1796&mon=2&yr=2015”
},
]I have tried many ways of using the shortcode:
[jsoncontentimporter url=”https://trainingapi.ghtechnical.com/Api/CourseDetails/” numberofdisplayeditems=”30″ basenode=”CourseDetails”]
- {EndDate}
but still get th same errore.
Can you please advise?
Many thanks!
- The topic ‘Fatal error, syntax help’ is closed to new replies.