close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Facebook share working only on certain pages

Thread began 1/10/2012 7:44 am by fxs430566 | Last modified 1/11/2012 2:15 pm by Jason Byrnes | 1324 views | 7 replies |


Facebook share working only on certain pages

It appears that the facebook button only works on pages that are in the root folder. If the pages are nested away in subfolders all bets are off.

To see what I mean please go to, here it works.
Then click on the About and it works there too.
But if you go to any of the Shop subcategories or any other subcategory it does not.


Sign in to reply to this post

Jason ByrnesWebAssist

when i look at the source code of the pages that are not working, I can see PHP code, this usually happens if you are running PHP pages on a server that does not offer php support.

make sure that your host has PHP support and can run PHP code.

Sign in to reply to this post


Yes the host has php support and can run php code. But what you said soes not make sense to me. If the facebook button works on the index.php and the about.php why would it not run on the other pages?

Sign in to reply to this post

Jason ByrnesWebAssist

the issue i am seeing on the pages that do not work is that there is php code in the page source. if the host can process php code, then there is another cause for this

send me a copy of one of the pages that do not work so I can look at the code to try and determine what is wrong.

Sign in to reply to this post


Here is one of the pages where the Facebook button does not work

Attached Files
Sign in to reply to this post

Jason ByrnesWebAssist

what version of social media toolkit are you using? Make sure you are using the most recent version available from the download center. If you have a previous version, make sure to uninstall it from the extension manager before installing the newer one.

I can see some code that is not being written correctly. do a find for the following:

((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]

and replace it with:

<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>
Sign in to reply to this post


Ok here's the analysis;

Without applying your changes the following work;

Twitter, +1, Linkedin, Delicious (although instead of a new window delicious replaces my page), Digg.

Without applying your changes the following do not work;

Facebook, Reddit, Google Buzz.

After applying your changes they all work (delicious now pops up instead of replacing page) and Google Buzz went from not working to displaying a pop up with a 404 error.

I'm happy as it all works but I still question why the php code doesn't work the same for all of them as shown above. And could you help me fix google buzz?

Thanks for all your help


I'm on Version 2.0.0


Maybe there is a bug that causes incomplete php code to be generated when the target page is not in the root folder.

index.php - correct php code
about.php - correct php code
witty.php - incorrect php code

Just a thought...

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...