Thanks for the heads up. I’ll add to the to-do list.
Any update on this?, im using it under PHP5.4 and getting warnings also.
Warning: Creating default object from empty value in E:\htdocs\dnk\www\wp-content\plugins\contexture-page-security\components\app_components.php on line 462
Thanks.
Same issue here as remeau…
I am getting the same warnings.
For now I have turned the plugin off.
The fix looks easy, you need to check for a value being there, or similar.
dmccan:
This post might help (worked for me):
https://wordpress.org/support/topic/warning-error-creating-default-object-from-empty-value
It worked for me as well! You juste have to write the code:
ini_set( 'display_errors', 0 );
at the top of your wp-config file.
Please do not do kaylynnej’s suggestion. This is a bad line of code in the plugin:
foreach($content as $post->key => $post->value){
Should be:
foreach($content as $key => $value){
And all the sub-references changed. Please advise, plugin author. Here’s the entire method:
https://gist.github.com/solepixel/5407209
I updated the gist above with another issue of the same sort, same file.
https://gist.github.com/solepixel/5407209
I was creating my own theme and get the following error when I just bring up the URL in a new browser session:
Warning: Creating default object from empty value in /homepages/19/d314064359/htdocs/foobar/wp-content/plugins/contexture-page-security/core/CTXPS_Security.php on line 103
When I logged in to the system, the error went away.
I’m running on localhost and using 3.5.1 WordPress.
Steve
@rollingokie / Steve, haven’t heard from the plugin author, but check out my gist here: https://gist.github.com/solepixel/5407209
It has updated code for the 2 functions that throw these errors.
@briandichiara
Thanks. I did. It didn’t seem to fix the error on line 103. I copied the two functions you made but I threw the same error. Your line numbers were the two functions past line 160. I’ll bet it’s the same type of problem.
Steve
@rollingokie Ok, I have updated the code with the adjustment. Sorry it took so long, take a look at my gist:
https://gist.github.com/solepixel/5407209
@everyone
I noticed more problems with this plugin. Updated gist with another file called /contexture-page-security/components/app_components.php. See original gist: https://gist.github.com/solepixel/5407209