Parse Error with Sociable 3 plugin – using original sociable code
-
I was attempting to alter the mailto code in the email section of the file services.php in Sociable for WP 3.0. I changed the code from:
'email' => array( 'favicon' => 'email_link.png', 'url' => 'mailto:?subject=TITLE&body=PERMALINK', 'spriteCoordinates' => array(325,1) ),
to:
'email' => array( 'favicon' => 'email_link.png', 'url' => /* OLD LINE 'mailto:?subject=TITLE&body=PERMALINK',*/ 'mailto:?subject=<?php the_title(); ?> (from JavaReports.info)&body=<?php echo "To view this article from JavaReports.info, visit ", the_permalink(); ?>' 'spriteCoordinates' => array(325,1) ),
making sure I kept the original code commented so I could revert to the original version if needed.
After updating the file (services.php), i got the error “
Parse error: syntax error, unexpected T_STRING, expecting ‘)’ in /home7/bhwrtwoc/public_html/javareports.info/wp-content/plugins/sociable-30/services.php on line 119″ (line 119 is the line with the mailto tag).I then deleted the added code to revert to the original version:
'email' => array( 'favicon' => 'email_link.png', 'url' => 'mailto:?subject=TITLE&body=PERMALINK', 'spriteCoordinates' => array(325,1) ),
The problem is, I still get the error “
Parse error: syntax error, unexpected T_STRING, expecting ‘)’ in /home7/bhwrtwoc/public_html/javareports.info/wp-content/plugins/sociable-30/services.php on line 119″ on EVERY page, including my dashboard.I’ve tried deleting all code out of the file, deleting the email section, i even downloaded the plugin from the plugin website, copied services.php, and pasted into my editor (that is the only page I have access to because of the back button). NOTHING has worked.
Is there a way to fix this? or do I need to restore my site from a backup?
Here is the full code for services.php –
Original: https://pastebin.com/eEMP1jTi
My first edited version: https://pastebin.com/PgL5mwYh
- The topic ‘Parse Error with Sociable 3 plugin – using original sociable code’ is closed to new replies.