I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Yes. Here's the entire file:
<?php
// note: we can later move part of this function into sub-functions, which we can store in the base class.
require('language.php');
class SSULanguage extends SSULanguageBase{
var $registry;
function parse_name($name, $params){
$this->registerArray($params);
// Remove short words first
if(($word_length = $this->registry('minimum_word_length')) > 0){
$name_parts = explode(' ', $name);
foreach($name_parts as $key => $value)
if(strlen($value) < $word_length) unset($name_parts[$key]);
$name = implode($this->registry('name_delimiter'), $name_parts);
}
// trim the sentence
if ($this->registry('max_name_length') > 0 && (strlen($name) > $this->registry('max_name_length'))){
preg_match('/(.{' . $this->registry('max_name_length') . '}.*?)\b/', $name, $matches);
$name = rtrim($matches[1]);
}
// we replace any non alpha numeric characters by the name delimiter
$name = str_replace(array(' ', '\'', '/', '\\', '"', '.', ':', '@', '_', '-', '?', '&', '='), $this->registry('name_delimiter'), $name);
// remove excess $this->registry('name_delimiter')
$name = $this->removeDelimiter($name);
// remove trailing _
$name = strtolower(trim($name, $this->registry('name_delimiter')));
return urlencode($name);
}
}
Interesting. Can you please post the content of your language.php as well? And the above fatal error is the only one you current have, right?
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Yes, that's the only one.
Here's language.php:
<?php
class SSULanguageBase{
var $registry;
function register($name, $value){
$this->registry[$name] = $value;
}
function registry($name){
if(isset($this->registry[$name]))
return $this->registry[$name];
return null;
}
function registerArray($params){
foreach ($params as $key => $value)
$this->register($key, $value);
}
function removeDelimiter($name){
// remove excess $this->registry('name_delimiter')
$name = preg_replace('/'.$this->registry('name_delimiter').$this->registry('name_delimiter').'+/', $this->registry('name_delimiter'), $name);
// remove anything that looks like our identifiers in the name
$name = str_replace(array( $this->registry('category_identifier'),
$this->registry('manufacturer_identifier'),
$this->registry('page_identifier'))
, '', $name);
foreach($this->registry('products_identifiers') as $products_identifier)
$name = str_replace($products_identifier, '', $name);
return $name;
}
}
This is a bug for some very old php4 versions (things not working well with mixcase class-name).
What is your php version?
Regards
Link to bug: http://bugs.php.net/bug.php?id=27227
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
It's 4.3.11
4.3.11 is released 3-4 years ago, perhaps it's now time for your host to upgrade to a newer version?
Each new version released come with bug fixes and performance improvement, so it will benefit your whole site over all.
In the mean time, please do this: please turn off ssu via admin, this should return your links back to normal. Please pm me if you need more help.
Regards
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
@everyone:
As pointed out by nagelkruid
"maybe more for documentation, but is it possible the glid is actually a typo and Set Query Key's Exclude List should actually be default set to zenid,gclid ^_^"
I had a typo there, please go to your admin->configuration->ssu settings->exclude query and change "glid" to "gclid"
This will be updated in the next version as well.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
I installed 3.4.5 and followed the install directions to the letter I believe.
Now, with SSU turned on the simple URLS show but they do not link to anything on my site. I have it turned off as of now.
???
It's hard to know what's going on based on your description. What do you mean by not linking to anything on your site? What kind of links are shown? What errors you get?
Be more specific, always be very specific when you report a problem. What you are doing is similar to saying: help, my computer doesnt run.
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me