Hi, i have had a problem with the clea url´s, when i active it, all the site breaks. i have my website hosted in 000webhost.com, i now it is free, but i dont understand why when i active clean url´s, the website redirects me to 000webhost error 404.

i need to know if it happens due to my hosting is a free hosting, or why it is happening.

Other problem that i have is that i installed the module sharethis, for share content of my website to social networks, but this module takes the URL´s like clean, with out the '?q=' path, so when someone clicks on shared content, it redirects to the 000webhost error 404 page again. =/

please what can i do?, i would like to know if i can make the sharethis module works with normal urls, or whatever for make it works. thanks at all

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcingy’s picture

Project: Drupal core » ShareThis
Version: 7.21 » 7.x-2.x-dev
Component: other » Code
Priority: Major » Normal
jvalencia’s picture

It should work,
Unfortunately, you would need to look at php error logs to see what happened.
If something loads, you could look at the span tag for the buttons, they should have an st_url attribute which tells the widget which url it should share.

ifernando’s picture

I am attaching a patch for the cases in which clean_url is disabled.

kenorb’s picture

Issue summary: View changes
Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 3: sharethis_cleanurl.patch, failed testing.

navneet0693’s picture

Status: Needs work » Closed (cannot reproduce)

Hi,

I am not able to reproduce this issue. The urls are now provided to function sharethis_node_view($node, $view_mode, $langcode) as

// Get the full path to insert into the Share Buttons.
  $mPath = url('node/' . $node->nid, array('absolute' => TRUE));

which works with clean urls disabled.
I am attaching screenshot for same.

navneet0693’s picture