Re: Ultimate SEO 2.200+ (new features)
I'm comparing the files in the USU v.2.12 mod package which are intended to overwrite (or be merged with) those files of stock ZC 1.51. However in a couple files I noted several diffs which I'd like to confirm are correct.
\includes\classes\db\mysql\query_factory.php
[stock zc151 ln 156]
Code:
}
return $obj;
} else {
$obj->EOF = true;
}
[USU 2.12]:
Code:
}
} else {
$obj->EOF = true;
}
return $obj;
Note the different code order.
[stock zc151 ln 178]
Code:
$obj->is_cached = true;
[USU 2.12 ln 204]:
Code:
$obj->is_cached = true;
That is, the above USU line is much further down in the file than in the stock Zen Cart.
\includes\classes\query_cache.php
[stock zc151 ln 178]
file ends with ?>
[USU 2.12]:
file does NOT end with ?>
Are the above diffs correct?
Also, which .htaccess file is the content of the .htaccess file in the mod package suppose to be merged with? Merged into the .htaccess in the "root" of the shop? Thanks.
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
Woodymon
I'm comparing the files in the USU v.2.12 mod package which are intended to overwrite (or be merged with) those files of stock ZC 1.51. ... I noted several diffs which I'd like to confirm are correct.
\includes\classes\db\mysql\query_factory.php ...
If running Zen Cart 1.5.x overwrite your existing copy with the file included with 2.212. The included file contains fixes to a known Zen Cart bug. A quick search finds: #1162495 and #1223351.
Quote:
Originally Posted by
Woodymon
...
\includes\classes\query_cache.php
[stock zc151 ln 178]
file ends with ?>
[USU 2.12]:
file does NOT end with ?>
Some of my PHP files are missing the ?> at the end of the file.
Quote:
Originally Posted by
Woodymon
...
Also, which .htaccess file is the content of the .htaccess file in the mod package suppose to be merged with? Merged into the .htaccess in the "root" of the shop? ...
This file goes in the root "folder" where you installed Zen Cart. So if you installed in "/store" the file should be placed at "/store/.htaccess". Don't forget to edit the .htaccess file before you upload to reflect the appropriate RewriteBase for your store (none if you access the store using only the domain name, "/store/" if you use "/store" after the domain name to access the store - this should also match the value of 'DIR_WS_CATALOG' in your Zen Cart configuration files).
The only time I've seen any issues with this is when a ".htaccess" file exists in a "parent" directory or web server configuration (and the parent .htaccess rewrites things before passing the request to the "/store" directory. If this happens you should alter the rules in the parent directory to exclude the "/store" folder.
Just a friendly reminder: Doing a search of the forums will often find the answer much more quickly than posting a question and waiting for someone to take the time to answer your question. I do understand it can be sometimes hard to "search" using the builtin search... When all else fails simply going to your favorite search engine (Bing, Google, etc) and adding " site:zen-cart.com" to the end of the search box will let you search this site using an external search engine!
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
lhungil
Just a friendly reminder: Doing a search of the forums will often find the answer much more quickly than posting a question and waiting for someone to take the time to answer your question. I do understand it can be sometimes hard to "search" using the builtin search... When all else fails simply going to your favorite search engine (Bing, Google, etc) and adding " site:zen-cart.com" to the end of the search box will let you search this site using an external search engine!
Thank your for your response and suggestions.
Indeed I did search on my issues before posting. I always do. I'm interested in learning which specific search parameters would you suggest which would have allowed me to find the solution to my posted questions/issues.
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
Woodymon
Thank your for your response and suggestions.
Indeed I did search on my issues before posting. I always do. I'm interested in learning which specific search parameters would you suggest which would have allowed me to find the solution to my posted questions/issues.
I was searching on queryfactory.php rather than query_factory.php
Now i see all the posts on that specific file.
Thanks for tip on the checking the bug reports.
Off topic: Looks like many fixes for ZC v.1.5.1 to be released in ZC v.1.6.0. And note a recent post with a fix to be released in v.1.5.2.
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
Woodymon
Thank your for your response and suggestions.
Indeed I did search on my issues before posting. I always do. I'm interested in learning which specific search parameters would you suggest which would have allowed me to find the solution to my posted questions/issues.
1. I was inadvertently searching on queryfactory.php. NOT query_factory.php
2. Regards the missing closing php tag, I just assumed the stock ZC core file contained the closing tag, the closing tag would be present in any modified version, unless there was specific reason not to.
3. Regards to which .htaccess file should be modified, I assumed correctly the file in the shop root. But I was just making a point the readme contains no such indication.
Thank you for the pointer to bug fix thread. Certainly there many bug fixes marked as fixed in ZC v.1.60, which I need to give consideration. And I see one bug fix labeled as fixed in v.1.52. So I would surmise an incremental v.1.52 update will be coming soon (and I have read similarly elsewhere).
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
Woodymon
... I just assumed the stock ZC core file contained the closing tag, the closing tag would be present in any modified version, unless there was specific reason not to. ...
Fair enough, I typically remove them when I have to edit / update a file (following the current Zen Cart convention). The reason for removing the closing tag is compelling (both in that article and elsewhere), especially since different OSes use different line endings (and some SFTP/FTP/FTPS programs used by fellow zenners are not always configured to upload PHP files using "text" mode).
Quote:
Originally Posted by
Woodymon
... Regards to which .htaccess file should be modified, ... I was just making a point the readme contains no such indication. ...
This is actually noted in the readme "Upload the .htaccess file to the folder where you installed Zen Cart". Many people tend to miss this sentence (and also forget to modify the RewriteBase), so I figured it was just easier to add another post w/ more detailed information ;)
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
lhungil
Fair enough, I typically remove them when I have to edit / update a file (following the current Zen Cart convention). The reason for removing the closing tag is compelling (both in that article and elsewhere), especially since different OSes use different line endings (and some SFTP/FTP/FTPS programs used by fellow zenners are not always configured to upload PHP files using "text" mode).
**nods in agreement**:yes: me too!!
Re: Ultimate SEO 2.200+ (new features)
Indeed I missed that line and all makes sense. Appreciate the helpful information here and elsewhere. The migration to ZC1.51 is complete. SO now its time to install this mod. Wish me luck as my mind is numb and I'm going blind from editing core files on much too small of a screen.
Re: Ultimate SEO 2.200+ (new features)
Hello,
I installed MultiLanguage SEO Url and I have installed also Ultimate SEO Url (both last versions) and they work ok.
The problem I find is that when on Ultimate SEO Url is activated the automatic redirect 301, for every link generated in the website the Language variable is added at the end of the link and took away from the directory.
For example a link like this:
http://127.0.0.1/public_html/en/gibs...-vos-p-22.html
is redirected 301 to:
http://127.0.0.1/public_html/gibson-...ml?language=en
How can I fix this? Is something normal? I should just deactivate the automatic 301 redirect?
Thanks for your help
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
jean.delacroix
...
I installed MultiLanguage SEO Url ... when ... activated ... automatic redirect 301, for every link generated in the website (a 301 redirect with) the Language variable is added at the end of the link and took away from the directory.
...
The changes made in the "MultiLanguage SEO Url" module are not supported by myself or in this thread.
One can disable the "automatic 301 redirect" and see if the 301 goes away...
If they do not go away... the issue is most likely not caused by the "MultiLanguage SEO Url" module or "Ultimate URLs"... In this case one would need to look into what else in the hosting environment and Zen Cart install could be affecting things...
If the 301s do go away... One can run with "automatic 301 redirects" disabled (and should manually add any needed when changing titles)... One might also want to troubleshoot the redirect code... For example adding some debug output in the "need_redirect" function of MultiLanguage SEO Url" to see the contents of the following variables:
- $this->uri_parsed['path']
- $this->redirect_url['path']
- $params
- $old_params
One may need to make some changes to the redirect code in the above mentioned function due to the changes made by the "MultiLanguage SEO Url" modifications (and based upon your hosting environment).
Note: I do not plan to install the above mentioned modification in any of my testing environments - or test / debug the changes made by the aforementioned 3rd party modifications to this plugin. By default Zen Cart 1.5.x uses "?language=" at the end of the URL to indicate the page should be displayed using a different language from the store or web browser default. See "Zen Cart admin" -> "Configuration" -> "My Store" -> "Language Selector". Setting this to "Browser" will allow each visitor to see the website in their requested language if installed in Zen Cart (falling back to English if no matching language can be found). These settings work out of Box with "Ultimate URLs" to show the correct language based URLs to website visitors (and search engines) for the current request (and requested language).