mac987
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: shorten page lengththe page is http://www.privatemedinsurance.co.uk/staysure.
I hope this gives you enough information to help.
Thanks in advance
Mac
Forum: Fixing WordPress
In reply to: Invalid argument supplied for foreach() – thecontent.phpDuck Boy
Just noticed , after i posted the reply in the forum both strings which appear differently in this forum and the e mail i received from the forum look the same in the reply i posted.
Not sure where to go with this, any advice ?
Regards
Mac
Forum: Fixing WordPress
In reply to: Invalid argument supplied for foreach() – thecontent.phpHi Duck Boy
No joy
The string appears differently between the e mail and the forum
This is what appears in my inbox
echo ‘
'; print_r($options); echo '
‘;
This is what appears in the forum post
echo ‘
'; print_r($options); echo '
‘;
Not sure which is right but whichever one i add in i get the same error when i try to launch the site.
So these are the lines at the top of the thecontent.php file with your debug string in.
<?php
global $options;
echo ‘'; print_r($options); echo '
‘;
foreach ($options as $value) {
if (get_settings( $value[‘id’] ) === FALSE) { $$value[‘id’] = $value[‘std’]; } else { $$value[‘id’] = get_settings( $value[‘id’] ); }
}
?>Is this correct ?
Many thanks
Mac
Forum: Fixing WordPress
In reply to: Invalid argument supplied for foreach() – thecontent.phpHi
Sorry for souding stupid but what is the exact string that needs to be placed on the line before the forach line.
Is it
echo’; print_r($options); echo ‘
Have tried a few variations but nothing changes.
What do you expect to see and where when the string is correct ?
Thanks
Mac
Forum: Fixing WordPress
In reply to: Invalid argument supplied for foreach() – thecontent.phpHi Duck Boy
Thanks for the reply.
Made no difference removing one of the $
Here is the output after adding the echo statement before the foreach line
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in thecontent.php line 5.
Hope this helps
Thanks
MacForum: Fixing WordPress
In reply to: Chaning permalinks for a pageHi Dskallman
No i dint and this has solve the problem. Many thanks i have been scratching my head for a long time on this one
best Regards
Mac