Re: Ultimate SEO 2.200 [Support Thread]
i suggest you find someone more versed in the black arts of apache directives and get them to fix it.... i myself merely dabble and am hardly an expert...
i further suggest you put all of your websites under version control. that way it is far easier to go back to when things worked. it requires some effort to learn git, but the advantages going forward are great. i use bitbucket as a repository for all my source code. makes changes to working websites far less stressful.
good luck.
Re: Ultimate SEO 2.200 [Support Thread]
Re: Ultimate SEO 2.200 [Support Thread]
has anyone tested this plugin with php7.0?
does not seem to work as on line 532, getting an error of:
PHP: Only variables can be passed by reference
or:
PHP Fatal error: Uncaught Error: Cannot pass parameter 1 by reference
hmmm....
Re: Ultimate SEO 2.200 [Support Thread]
Quote:
Originally Posted by
carlwhat
has anyone tested this plugin with php7.0?
does not seem to work as on line 532, getting an error of:
PHP: Only variables can be passed by reference
or:
PHP Fatal error: Uncaught Error: Cannot pass parameter 1 by reference
hmmm....
I have a site using USU. I it set to PHP 5.6 but I just changed it to 7.0 and it still working. Only limited testing but category and product url's are working.
Re: Ultimate SEO 2.200 [Support Thread]
jim,
thanks for responding. must have been a little late bleary looking at this problem.
in any event, what are your settings? if you look at the code:
Code:
if(USU_FORMAT == 'parent' && USU_CATEGORY_DIR == 'off') {
$pName = $this->get_category_name($cID !== null ? $cID : (int)$result->fields['master_id'], 'original') . '-' . $pName;
}
you will not hit this problem unless USU_FORMAT is set to parent and USU_CATEGORY_DIR is set to off.
i was able to get around this problem by modifying the code to:
Code:
if(USU_FORMAT == 'parent' && USU_CATEGORY_DIR == 'off') {
$tempMID = ($cID !== null ? $cID : $result->fields['master_id']);
$pName = $this->get_category_name($tempMID, 'original') . '-' . $pName;
}
curious if anyone else has experienced this?
thanks.
1 Attachment(s)
Re: Ultimate SEO 2.200 [Support Thread]
Quote:
Originally Posted by
carlwhat
jim,
thanks for responding. must have been a little late bleary looking at this problem.
in any event, what are your settings? if you look at the code:
The settings for this site are:
Attachment 17056
Re: Ultimate SEO 2.200 [Support Thread]
these 2 need to be set like this and then i'm guessing it would fail:
Format of alternate URLs parent
Display categories as directories off
best.
Re: Ultimate SEO 2.200 [Support Thread]
Quote:
Originally Posted by
carlwhat
these 2 need to be set like this and then i'm guessing it would fail:
Format of alternate URLs parent
Display categories as directories off
best.
I tried those and it broke my site, thanks a lot!! Ha, just kidding.
It did result in a 500 error, so confirms your suspicions.
1 Attachment(s)
Re: Ultimate SEO 2.200 [Support Thread]
Hi,
I have a problem, when I turn on the Utimate Seo Urls, after that i have Number of Queries on the web site higher than 1600. In admin are all caching turned on. Where is the problem? Can someone help me? Thank you in advance.Attachment 17067
Re: Ultimate SEO 2.200 [Support Thread]
Quote:
Originally Posted by
carlwhat
jim,
thanks for responding. must have been a little late bleary looking at this problem.
in any event, what are your settings? if you look at the code:
Code:
if(USU_FORMAT == 'parent' && USU_CATEGORY_DIR == 'off') {
$pName = $this->get_category_name($cID !== null ? $cID : (int)$result->fields['master_id'], 'original') . '-' . $pName;
}
you will not hit this problem unless USU_FORMAT is set to parent and USU_CATEGORY_DIR is set to off.
i was able to get around this problem by modifying the code to:
Code:
if(USU_FORMAT == 'parent' && USU_CATEGORY_DIR == 'off') {
$tempMID = ($cID !== null ? $cID : $result->fields['master_id']);
$pName = $this->get_category_name($tempMID, 'original') . '-' . $pName;
}
curious if anyone else has experienced this?
thanks.
@carlwhat, you can probably accomplish the same thing in the original line, by simply adding an extra set of parentheses around:
($cID !== null ? $cID : $result->fields['master_id'])
(ie: before the ", 'original'" part)
Your approach isn't wrong though.