close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

FB Share button only takes me back to index page

Thread began 3/27/2012 3:49 am by accounts429371 | Last modified 3/29/2012 10:40 am by Jason Byrnes | 2712 views | 7 replies |

accounts429371

FB Share button only takes me back to index page

please see www.xf.co.za

When you use the FB Share button it only points me back to the index page.

Also very fustrating:... I was forced to use the "Hide with Share" option as WA Social kept placing the share buttons vertically underneath each other instead of next to each other. I made a seperat Div class SocialMedia (see line 177) to place the share buttons in.

Google +1 doesnt seem to be working correctly but this may not be the plugin's problem, please advise.

Warren

Sign in to reply to this post

Jason ByrnesWebAssist

looking at the source of your page i see the following error:

<div class="icons"> <a name="fb_share" type="icon" href="#" onclick="window.open('http://www.facebook.com/sharer.php?u=<br />
<b>Notice</b>: Undefined index: REQUEST_URI in <b>C:\Domains\xf.co.za\wwwroot\index.php</b> on line <b>152</b>

it looks like the path for the page is set to use a system path instead of a web address, send a copy of the page so i can see the code generating the error.


when the icons are stacking vertically, it usually means that the container they are in does not have enough room, if you send a link to page where the icons are stacking vertically, i can troubleshoot that for you.

Sign in to reply to this post

accounts429371

Link as requested

www.xf.co.za/

Its the home page... Thx alot

How do i send you a copy of the page, the forum wont let me attach a php file?

Ok I have attached the index page

Attached Files
index2.zip
Sign in to reply to this post

Jason ByrnesWebAssist

compress the file into a zip archive and attach the zip file.

Sign in to reply to this post

accounts429371

Zip File

Here is the Zip file you requested

Attached Files
index2.zip
Sign in to reply to this post

Jason ByrnesWebAssist

try adding the following code at line 1 to fi this issue:

php:
<?php

if (!isset($_SERVER['REQUEST_URI'])){
       
$_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],);
       if (isset(
$_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'].='?'.$_SERVER['QUERY_STRING']; }
}
?>
Sign in to reply to this post

accounts429371

Working better

Thx Jason that is working well now with FB, Thx.

Only prob is that the link is being shared as www.xf.co.zaindex instead of index .

How do I fix this. When you click on the incorrect link on FB it doesnt find any page.

Also, if Im having a similar prob on other pages can I use the same piece of code?

Sign in to reply to this post

Jason ByrnesWebAssist

hmmm, change this line:
[php]
$_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],1 );
[php]


to:
[php]
$_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF'];
[php]


yes, if you run into this issue again, you can reuse the code i provided. the problem is that your server does not define the REQUEST_URI server variable, this code is used to define it manually.

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

Content

rating

Layout

rating

Ease of use

rating

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...