• 0

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /var/www/html/cnasolution/site/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/site/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/site/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

json_decode - Decoding standard JSON code not working

The problem occurs in wordpress and I simply can't figure out what is wrong. I have a string. var_dump returns this:

string(300) "{"7":{"text":"sdf","direction":"horizontal","font":"Oswald","x":"30","y":"37","width":"40","height":"11.43","image":0},"8":{"text":"34","direction":"horizontal","font":"Oxygen","x":"30","y":"44","width":"40","height":"41.29","image":0}}" 

I tried:

json_decode($string); json_decode(stripslashes($string)); json_decode(str_replace('\', '', $string); 

Neither works. I tried everything possible to enable error reporting in wordpres (newest version), but, for some reason, wordpress developers thought that they must do everything for developers not to see errors. So I can't see what the error is.

Please, help.

Download script demo [LINK] [Origin]
Download script demo [LINK 2] [Onedrive] Download script demo [LINK 2] [Google drive]