Infinity Theme Options page blank
- This topic has 6 replies, 3 voices, and was last updated 10 years ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
Hello awesome CBOX-peeps,
I have a brand new CBOX install with WP 4.2.2 and CBOX 1.0.10. I’m getting
the same issue that I’ve seen from other folks on the forum, whereupon I
click CBOX Theme Options and get a blank screen.
I wasn’t able to find a non-Github link to an authoritative fix for this
problem (the Github is a mix of deleted and added code, so I wasn’t sure
which was the right line), but I tried to paste various permutations of
that code into my child theme’s functions.php with no success.
I suspect that fix is out of date anyway, since it pertained to WP 2.6.x
release, and now we’re way past that.
What’s the latest?
Thanks!
Damian
@damiansol You’ll need to enable error reporting first so that the actual error can be identified. This topic covers that process.
Cheers, Christian
Thanks Christian.
I enabled error reporting and, while I saw many errors with various permutations of “Strict Standards: Declaration” in them, this one stood out as a likely culprit:
Parse error: syntax error, unexpected ‘<‘ in /var/www/vhosts/icln.cbox.twohatsconsulting.com/wp-content/themes/cbox-theme/dashboard/templates/cpanel_header.php on line 2
I looked in that file and noticed an extra <?php opening tag, so I deleted it as a test and the page seems to work now! Sweet.
I’m not a Github user, so I’m not sure how to best submit that as a needed change, but it’s clearly an error that should be corrected. Let me know if there’s some way I can contribute there, and thanks again for the help.
Damian
Well, that’s odd – the file looks okay to me. Here’s a link to it as it currently stands in the GitHub repo:
How does it differ from the file that was on your system?
And, so I can try and reproduce this, which version of PHP are you using?
Hi Christian,
Here’s the report from the Theme Settings area:
One other thing I just thought of — the server I’m hosting this demo site on was recently hacked. In so doing a few files were defaced. It’s possible that this file was hacked to the degree that there was an additional <?php opening tag added by the malicious code.
Damian
One other thing I just thought of — the server I’m hosting this demo site on was recently hacked. In so doing a few files were defaced. It’s possible that this file was hacked to the degree that there was an additional
Probably best to delete the cbox-theme and probably all plugins and start from scratch.
Also, do a malware scan of your WP install:
https://wordpress.org/plugins/gotmls/
Hello Ray,
Thanks for that plugin. I installed it and found one backdoor script, which I deleted.
Damian