after the Pretty Urls Install

Started by theamitak, April 01, 2015, 07:09:09 AM

Previous topic - Next topic

theamitak

i am installed the pretty urls but there are a error please solve
Parse error: syntax error, unexpected '*' in /home/u895503939/public_html/forum/Sources/QueryString.php on line 550
/***   Pretty URLs says no!

/***   Pretty URLs says no!

   // This should work even in 4.2.x, just not CGI without cgi.fix_pathinfo.
   if (!empty($modSettings['queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && ($context['server']['is_apache'] || $context['server']['is_lighttpd']))
   {
      // Let's do something special for session ids!
      if (defined('SID') && SID != '')
         $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&))((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html?' . SID . '\$2\"'", $buffer);
      else
         $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
   }

***/

   //   Rewrite the buffer with Pretty URLs!
   if (!empty($modSettings['pretty_enable_filters']))
   {
      require_once($sourcedir . '/PrettyUrls-Filters.php');
      $buffer = pretty_rewrite_buffer($buffer);
   }

   //   Update the load times
   $pattern = '~<span class="smalltext">' . $txt['page_created'] . '([.0-9]+)' . $txt['seconds_with'] . '([0-9]+)' . $txt['queries'] . '</span>~';
   if (preg_match($pattern, $buffer, $matches))
   {
      $newTime = round(array_sum(explode(' ', microtime())) - array_sum(explode(' ', $time_start)), 3);
      $timeDiff = $newTime - (float) $matches[1];
      $queriesDiff = $db_count + $context['pretty']['db_count'] - (int) $matches[2];
      //   Remove the link if you like, I won't enforce it like others do
      $newLoadTime = '<span class="smalltext">' . $txt['page_created'] . $newTime . $txt['seconds_with'] . $db_count . $txt['queries'] . ' (<a href="http://code.google.com/p/prettyurls/ [nofollow]">Pretty URLs</a> adds ' . $timeDiff . 's, ' . $queriesDiff . 'q)</span>';
      $buffer = str_replace($matches[0], $newLoadTime, $buffer);
   }
***/   it is line number 550


its solved ty :)

margarett

Hi and welcome to sm.org ;)

You should use the MOD support topic for MOD related questions.
http://www.simplemachines.org/community/index.php?topic=146969.0

As a hint: attach in that topic the file where the error occurs (QueryString.php)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

theamitak


Advertisement: