+ 2

PHP warning !

I am using The7 wordpress theme and I have got tis issue illegal string offset in 'content'  line 908 I think these are the guilty lines if some one could help me 😊 $content = $found[5][ $index ]; $shortcode = array( 'tag' => $s, 'attrs_query' => $found[3][ $index ], 'attrs' => shortcode_parse_atts( $found[3][ $index ] ), 'id' => $id, 'parent_id' => $parent_id, ); if ( false !== WPBMap::getParam( $s, 'content' ) ) { $shortcode['attrs']['content'] = $content; }

28th Jan 2018, 5:11 AM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
16 Respostas
+ 5
Well, SO is well known for stricter rules on duplicates, I suppose you already know that. Have you tried looking for WP community forum? they probably won't be as strict as SO, and given specific topic, you probably have better chance for an answer. I would also try to contact the theme developer, if they are open for communication, they surely know more about it rather than anybody else.
29th Jan 2018, 7:27 AM
Ipang
+ 4
@Abdurrahman, honestly, I know nothing about WP and its scripts, I have no experience with it : ) However, I looked it up and found these discussion links, I guess they're somewhat related to that error message, hope you can find your answer there, if not, maybe you can try to post a question on some WP community forum, I bet you'll have better luck for answers there. https://stackoverflow.com/questions/9869150/illegal-string-offset-warning-php https://stackoverflow.com/questions/41449441/php-illegal-string-offset-warning-on-array Good luck : )
29th Jan 2018, 6:22 AM
Ipang
+ 4
You're welcome @Abdurrahman, hope you can solve the issue shortly, by the way, when you have a solution, kindly share it here, so others can also learn from it later, okay : )
29th Jan 2018, 6:29 AM
Ipang
+ 3
thanks dear :)
29th Jan 2018, 6:23 AM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 3
@Abdurrahman, which link is confusing, the first or the second link? I haven't fully read them actually...maybe I can help a little...
29th Jan 2018, 6:58 AM
Ipang
+ 2
thanks alot my friend 😊
28th Jan 2018, 6:42 PM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 2
ok if it solved
29th Jan 2018, 6:45 AM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 2
I really get confused because I know nothing in php and can't understand what they mean in these answers
29th Jan 2018, 6:51 AM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 2
I have written that in stackoverflow there laughed on me and they are going to block my account 😂😂 if you find someone expert at php then let him come here please
29th Jan 2018, 6:58 AM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 2
both of them I told you I know nothing about php litteraly nothing so I couldn't understand
29th Jan 2018, 6:59 AM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 1
I didn't understand I know nothing about PHP but I need this correction to use my wordpress theme
28th Jan 2018, 6:07 PM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 1
if u don't know coding then u shouldn't touch the code
28th Jan 2018, 6:37 PM
fahim
+ 1
I think you are one can you help me
28th Jan 2018, 6:38 PM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
0
in Array parameter u pass wrong value so first do this print_r ($content) ; die (); if it's print value then take those value and pass it in ur array
28th Jan 2018, 8:18 AM
fahim
0
now u should contact with a developer
28th Jan 2018, 6:37 PM
fahim
- 1
Sorry dear I am at hospital right now and next 7days I have to stay here so I just cant help u now
28th Jan 2018, 6:41 PM
fahim