Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81688

Undefined property 'name' / unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING

$
0
0
Hello,
I'm trying to deployed on a just generated Editor example of DataTables, but I'm unable to make it work.

[1]
In my local environment, I'm receiving the following error when I click on New, enter record information and then hit Update button:
"
Notice: Undefined property: DataTables\Editor\Field::$name in C:\SkyDrive\webapps\htdocs\DataTables\php\lib\Editor\Editor.php on line 319
{"id":-1,"error":"","fieldErrors":[{"name":null,"status":null}],"data":[]}
"

[2]
In my live environment (http://a4enterprise.com/DataTables/exp_budget_expenses193.html) I'm receiving a different error, when I just try to load the same page:

"
DataTables warning (table id = 'exp_budget_expenses193'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error. "

And the following error is triggered on the HTML Response (FF FireBug's Net XHR section)
"
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/a4enterp/public_html/DataTables/php/table.exp_budget_expenses193.php on line 13
"

Can you please guide on what am I missing?

I have PHP 5.4 on both environments, tried the database connection on both and it works just fine

Viewing all articles
Browse latest Browse all 81688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>