-
Posts
324 -
Joined
-
Last visited
-
Days Won
3
Posts posted by artfulweb
-
-
And if I leave out the addition to application.top and just call mysite/googlesitemap/index.php that still does not generate the maps.
-
Finally got an error in my logs
PHP Fatal error: Uncaught Error: Undefined constant "DIR_WS_HTTPS_CATALOG" in /xx/xx/xx/xx/includes/application_top.php:52
Stack trace:
#0 /xx/xx/xx/xx/index.php(13): require()
#1 {main}
thrown in /xx/xx/xx/xx/includes/application_top.php on line 52Line 52 is
tep_redirect(HTTP_SERVER . DIR_WS_HTTPS_CATALOG . 'googlesitemap/index.php'); //
-
Hi Jack, having been trying everything. When I click to generate the maps a new page opens but blank. Nothing in the error logs. Tried the diagnostic but nothing shows. There is no sitemap_index.php.
I had had the previous version installed but it only did the products sitemap so I hoped this version would fix it but the result is the same and as the googlesitemap/index.php is blank I do not know where to look.
That said, the only other change to the site was the add of Name Based URLs which gives the same result as Ultimate SEO URLs ( which had bugged on this version of Phoenix though installed for years so I gave the other a try as it is a live site, sorry).
-
new version has been uploaded with these changed:
- Corrected code to run correctly via cron or the shop.
- Fixed some php warnings for 7.3+.
Hi Jack, having been using this for years and now on Phoenix 1.0.8.16 the only sitemap generated is for the products, not the rest. any ideas would be appreciated.
-
6 hours ago, petbeemer said:
I have exactly that as well will latest CE Phoenix v1.0.8.14
PHP Version 7.4.29 (Zend 3.4.0) Did anyone find a cure?
Hi Jack, hi Peter,
I just did a new test site with a vanilla version of Phoenix 1.0.8.1.4 and your latest version of Ultimate SEO URLs with no other addons for the moment and it works. I can only assume that my original problem must have had some relation to another add-on as this test site is on the same server as the last and in a subfolder as was the last. A mystery for me but it is working just great.
-
Thank you, Jack!
-
Found it, but the change does nothing, unfortunately...
-
33 minutes ago, Jack_mcs said:
@artfulwebPlease try changing this
$string = iconv('UTF-8', 'ASCII//TRANSLIT', $string);
to this
$string = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $string);
Excuse me, Jack, where is that?
-
On 1/4/2022 at 8:04 PM, Jack_mcs said:
@artfulwebI was just working on a different problem that reminded me of this one. That problem was a setting on the server not being set. To check it, please go to admin->Tools->Server Info and search for "output buttering". There should be a number for it. The default is 4096. It can be something different but if it is blank that is most likely the problem.
Hi Jack,
Sorry to take so long. I created a phpinfo file to se the output_buffering (can not see all server details through the admin panel) and as it was 0 I added it to my php.ini file with the default 4096 as you stated but still no change. Ultimate SEO URL worked before on the server apparently with the buffering at 0 so that should not have been the problem but thanks anyway.
-
Thank you for all your help, Jack.
-
Excuse me, php 7.4.25
-
1 minute ago, Jack_mcs said:
It shouldn't be needed but was worth a try. What version of php are you using. I tried both 7.4.13 and 8.0.
On 7.4.13, have not yet taken the plunge to 8.
-
Changed the hook file to replace the public function to listen_injectRedirects() {
Now in the navigation bar I see the url changed but get a 404 error page.
-
4 minutes ago, Jack_mcs said:
For the above, please change to
header("Location: $url"); // redirect...bye bye exit; break;
Changing that breaks the site, clicking a product everything under the navbar goes blank and stll throws the same error as before. No cache issue as I uninstalled and reinstalled.
-
If we look at /includes/components/template_top.php:26 line 26 is:
<!DOCTYPE html>
<html<?php echo HTML_PARAMS; ?>>If we look at /includes/classes/seo.class.php, linse 2907-2910 are
case ($this->attributes['USE_SEO_REDIRECT'] == 'true'):
header($_SERVER['SERVER_PROTOCOL'] . " 301 Moved Permanently");
$url = str_replace('&', '&', $url);
header("Location: $url"); // redirect...bye bye
break;
-
Hi Jack, Hi John,
Jack, thank you but this is a vanilla install of 1.0.8.9 with only Ultimate SEO installed so there is nothing else that has been modified. Do not understand how it works on yours and not mine!
John, I am not sure in which file you think I should change the public function.
-
On 12/31/2021 at 8:00 PM, Jack_mcs said:
Please check that file to see that "injectSiteStart" is in it. You can try uninstalling this addon (using that setting) though I wouldn't think that would be needed.
Found it and injectSiteStart is on line 36 of that file so why the problem? I am so perplexed.
-
3 hours ago, Jack_mcs said:
Please check that file to see that "injectSiteStart" is in it. You can try uninstalling this addon (using that setting) though I wouldn't think that would be needed.
Jack, there is no more template_top.php in 1.0.8.9, it is template.php.
-
22 hours ago, Jack_mcs said:
@BrockleyJohnGood catch. It appears they have removed injectinjectAppTop completely.
@artfulwebIn the hook file change this line
public function listen_injectinjectAppTop() {
to this
public function listen_injectSiteStart() {
I made the change here and it ran without errors.
Hi Jack,
Made the change and still no change. Still getting the error
PHP Warning: Cannot modify header information - headers already sent by (output started at /XXX/XX/XX/XX/templates/default/includes/components/template_top.php:26) in /XX/XX/XX/X/includes/classes/seo.class.php on line 2908
and line 2910
-
Thanks Jack. Just for info I am not yet on php 8. Have a happy New Year!
-
OOOOOOHHHHH.... think I see the problem but do not know how to fix it. In the error it is calling template_top.php which existed prior to 1.0.8.6
headers already sent by (output started at /xx/xx/xx/xx/templates/default/includes/components/template_top.php:26) i
whereas it is now templates/override/includes/componets/template.php
so where is that called and how to modify it please?
-
On 11/25/2021 at 4:03 PM, Jack_mcs said:
@radhavallabhSince it works in other shops but not yours, it must be something unique to yours. If you turn the addon off in admin do all of the urls work correctly? If it does, try using the Uninstall setting and then reload the shop side. Does that fix it? If not, try turning off all cache options in the settings and try again. If it still fails then the only thing I can think to do is to install it into a new, basic, shop. That should work since it works here. Then you can try it with your database and if it fails, then it is something there that is causing the problem.
Hello Jack and happy holidays,
I too have the same problem. Tried it on a vanilla installation of Phoenix 1.0.8.7 as well as a modified version that already had it installed and working before upgrading to 1.0.8.7 and it does not rewrite. In my logs on both sites I am getting :
=============
PHP Warning: Cannot modify header information - headers already sent by (output started at /xxx/xx/xx/xx/templates/default/includes/components/template_top.php:26) in /xx/xx/xx/xx/includes/classes/seo.class.php on line 2908
PHP Warning: Cannot modify header information - headers already sent by (output started at /xx/xx/xx/xx/templates/default/includes/components/template_top.php:26) in /xx/xx/xx/xx/includes/classes/seo.class.php on line 2910=============
Have cleared all caches, rechecked my htacces file, uninstalled, reinstalled and still no rewrite. As the vanilla install has no modifications I just do not understand.
Thanks
-
14 hours ago, Jack_mcs said:
Yes, I did. But it looks like I didn't include the changed file in the latest upload. Please try the attached file and let me know how it goes.
Perfect Jack! All working as should. Thanks ever so much for the update.
-
9 hours ago, Jack_mcs said:
@zeeshopDue to how updates are done in Phoenix, it might be that there isn't a version of this addon that will work in your version. I tested up to 1.0.7.6 and in 1.0.8.5 but not the ones in-between. But for any working version, when you click uninstall in admin, the settings won't show up again until you reload the shop side. I assume you checked for the settings after loading the shop side but thought I should mention it just in case. And, usually, you can safely replace the seo.class.php file with one from a different version for a quick test. You you may want to upload the files in one of the other Phoenix directories to see if that helps.
Hi Jack,
Thanks for updating.
On a fresh install of Phoenix 1.0.8.5 it does not install, no configuration items added to the database and no cache table. All the files were uploaded and the htaccess file modified. Called the site and nothing happened with the database. Ideas? Did you directly install on 1.0.85?
Thanks in advance
Google XML Sitemap SEO
in General Add-Ons Support
Posted
Hi Jack, I set up a testing site, vanilla install of Phoenix 1.0.8.16 and it works perfectly. Now I need to figure out which of my add-ons or rewriting rules create the problem. Sorry to have bothered you but at least for others I can confirm that it does work on a vanilla installation!