Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use object of type stdClass as array Line 100, 124 at /enlighter/class/TinyMCE.php #12

Closed
esumit opened this issue Jul 29, 2015 · 3 comments
Assignees
Milestone

Comments

@esumit
Copy link

esumit commented Jul 29, 2015

I have just download your plugin to experiment with my new wordpress based blog, and found the following error :

Cannot use object of type stdClass as array Line 100, 124 at /enlighter/class/TinyMCE.php

What I did ?, I just commented the code on line 100 and then on 124.

May you please check the issue and let me know your comments,

@AndiDittrich
Copy link
Member

Dear esumit,

thank's for you report. i can confirm the issue - it only affects users which are using other TinyMCE plugins. to fix it, please change line 72 of /enlighter/class/TinyMCE.php
from

$styles = json_decode($tinyMceConfigData['style_formats']);

to

$styles = json_decode($tinyMceConfigData['style_formats'], true);

the fix will be included within the next release.
best regards, Andi

@AndiDittrich AndiDittrich added this to the 2.9 milestone Jul 29, 2015
@AndiDittrich AndiDittrich self-assigned this Jul 29, 2015
@esumit
Copy link
Author

esumit commented Jul 29, 2015

Thanks Andi , appreciate your support and thanks for the awesome plugin.

'Sumit

Sent from my iPhone

On Jul 29, 2015, at 3:00 PM, Andi Dittrich [email protected] wrote:

Dear esumit,

thank's for you report. i can confirm the issue - it only affects users which are using other TinyMCE plugins. to fix it, please change line 72 of /enlighter/class/TinyMCE.php
from

$styles = json_decode($tinyMceConfigData['style_formats']);
to

$styles = json_decode($tinyMceConfigData['style_formats'], true);
the fix will be included within the next release.
best regards, Andi


Reply to this email directly or view it on GitHub.

@esumit
Copy link
Author

esumit commented Aug 4, 2015

Thanks Andi, :-)

On Tue, Aug 4, 2015 at 1:53 AM, Andi Dittrich [email protected]
wrote:

Closed #12 #12
.


Reply to this email directly or view it on GitHub
#12 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants