@apartmentsforrentx – The error is coming from line 68 even though it says 69. I’m not sure why it would generate an error there as $atts should always be an array, but you can try this:
Change
foreach ( $atts as $attribute => $value ) {
To
foreach ( (array) $atts as $attribute => $value ) {
Let me know.
Hi,
This is a bit alarming. The error got worse
[26-Jun-2019 10:15:41 UTC] PHP Fatal error: Uncaught Error: Cannot unset string offsets in plugins/content-control/classes/Shortcodes.php:71
71 unset( $atts[ $attribute ] );
Hello moderators, please delete this topic for security reasons from public view.
@apartmentsforrentx – what security reason could you have except that you put a link to your site on the first ticket. Otherwise I can’t see an actually security issue here.
Am I missing something?
Also crappy temporary hack but since we have seen this error a few times with no real reason why it should occur would it be possible for you to paste the shortcodes used on your site from our plugin.
And if possible add in a var_dump($atts) exit; then load the page where it should be rendered. Instead it will simply output the variable $atts and end. Copy that here and delete the var_dump and exit lines.
Let me know. Would love to solve this one once and for all.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Topics are only edited in extreme cases and search engine hits are never considered extreme.
https://wordpress.org/support/forum-user-guide/faq/#my-post-shows-up-on-a-search-for-my-domain-will-you-delete-my-post-or-my-link
Hello moderators, please delete this topic for security reasons from public view.
There is nothing in this topic that is even remotely a security concern. Your topic will not be deleted.
Hello again Sir Jan Dembowski,
I understand the policy for deleting topics. But, my website’s security is at stake, since 2 days ago, 20 daily hack attempts are reported by my security plugin. Which is very unusual and alarming. We know that different hack methods are on the web, and one reason is due to the directory path being exposed. But if it is not too much to ask from you. Could you please edit my first post and just remove the directory path before
“/wp-content/plugins/content-control/classes/Shortcodes.php on line 69”
I would appreciate it. Thank you.
Additionally I had 7 reported directory traversal hack attempts on my website. So I hope you could grant my request to remove the directory path on my first post. Thank you.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad