Re: Ceon URI Mapping (SEO)
Sorry to keep posting, but I read back further in this thread, and I saw another post about the URI displaying the long URI when hovering, and sure enough, I had installed html_output.php in the wrong directory! So now my hover URIs are correct.
Sorry for not seeing this sooner. (I'm still trying to figure out the other problems though.)
Thanks,
Karen
Re: Ceon URI Mapping (SEO)
OK, now I'm really stumped. After moving the html_output.php file into the correct directory, I get these errors when I try to open the admin console.
Code:
Warning: require(includes/functions/html_output.php) [function.require]: failed to open stream: No such file or directory in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
Warning: require(includes/functions/html_output.php) [function.require]: failed to open stream: No such file or directory in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
Fatal error: require() [function.require]: Failed opening required 'includes/functions/html_output.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
A little background--at first, I put the html_output.php file in the admin/includes/functions directory instead of includes/functions. Everything broke when I moved it (well not everything, just the admin console). Then I tried placing another copy of html_output.php in the admin/includes/functions/ directory to see if that would patch the problem, but then when I try to get to the admin console, I get the index page (with the long URI). So I removed the file from that directory again.
Have I totally destroyed my installation by placing that file in the wrong place initially? Is there a way I can fix this? It was working somewhat before, with the problems described in previous posts, but I could still get to the admin console.
Thanks so much for your help! I obviously won't be doing any more work on this until I get some feedback since I seem to be making it worse with everything I've tried so far. :oops:
Thanks,
Karen
Re: Ceon URI Mapping (SEO)
For all those out there with AJAX Banner Swapper installed but not working when Ceon URI Mapper is installed (and enabled) - I found that by commenting out one line in init_includes/init_ceon_uri_mapping.php made the banners display again:
Around line 410
if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
$_GET['main_page'] = 'index';
} elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
// Comment the following line out
// header('HTTP/1.1 404 Not Found');
$_GET['main_page'] = 'page_not_found';
}
Not sure of the impact of this yet, however I discovered using Firebug that the XML page sent by the ajax banner server php script was being reported as 404, however the content was still being sent by the server...
If this helps anyone solve this problem, please let me know.
Chris
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
kfarrell
OK, now I'm really stumped. After moving the html_output.php file into the correct directory, I get these errors when I try to open the admin console.
Code:
Warning: require(includes/functions/html_output.php) [function.require]: failed to open stream: No such file or directory in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
Warning: require(includes/functions/html_output.php) [function.require]: failed to open stream: No such file or directory in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
Fatal error: require() [function.require]: Failed opening required 'includes/functions/html_output.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/chickens/public_html/admin/includes/init_includes/init_general_funcs.php on line 33
A little background--at first, I put the html_output.php file in the admin/includes/functions directory instead of includes/functions. Everything broke when I moved it (well not everything, just the admin console). Then I tried placing another copy of html_output.php in the admin/includes/functions/ directory to see if that would patch the problem, but then when I try to get to the admin console, I get the index page (with the long URI). So I removed the file from that directory again.
I fixed that problem. It seems that there was already an html_output.php file in the /admin/includes/functions/ directory, and I had overwritten and then deleted it. Oops. I went back to my original Zen-Cart zip and re-uploaded that file, and everything is fine.
However, I have two remaining issues:
- I can't edit or delete an EzPage item. I tried re-uploading the ezpages.php file (just in case), but that didn't help.
- I would like to add the www. in front of my URIs, but I don't know where to configure that option.
Thanks so much for this mod! It is a lifesaver and a great mod, even with all my mess-ups! Looking forward to getting the site indexed on Google now with SEO friendly URLs! Thanks!
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
kfarrell
However, I have two remaining issues:
- I can't edit or delete an EzPage item. I tried re-uploading the ezpages.php file (just in case), but that didn't help.
- I would like to add the www. in front of my URIs, but I don't know where to configure that option.
Actually, I now found several more issues. If you click on Tell a Friend or Write a Review from a product page, you get a blank page. These URLs are being rewritten--I saw them in phpMyAdmin, and they appear to be going to the correct page ID.
Also, not only can I not add, edit, or delete EZ-Pages, I can't add categories either (though I can edit them), and one of my categories displays a blank page.
There is a blank page on http://chickensonline.com/rabbits
But you can see the subpage http://chickensonline.com/rabbits/lion-heads
I haven't tried deleting categories since I can't add them back. When I try to add a category, edit, add, or delete an EZ-Page, I am returned to the main screen of the console.
Please forgive my ignorance--I am new to this software and Zen-Cart and no PHP expert either. However, I would be eternally grateful if one of you gurus could help me figure out where I went wrong. Please help! :frusty:
Thanks,
Karen
Re: Ceon URI Mapping (SEO)
Hi Ben,
Quote:
Originally Posted by
ben harry
Just wondering if for seo reasons i should add .htm . html
No, you shouldn't add any extensions. It won't affect your SEO and it's recommended practice (by Tim Berners Lee who created the web) to not indicate the technology used to serve pages in the URI of the page itself (i.e the .htm or .html) if at all possible.
Hope that helps!
All the best...
Conor
ceon
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
kfarrell
I fixed that problem. It seems that there was already an html_output.php file in the /admin/includes/functions/ directory, and I had overwritten and then deleted it. Oops. I went back to my original Zen-Cart zip and re-uploaded that file, and everything is fine.
Yes, that's what you needed to do!
Quote:
Originally Posted by
kfarrell
However, I have two remaining issues:
- I can't edit or delete an EzPage item. I tried re-uploading the ezpages.php file (just in case), but that didn't help
I'm afraid I don't know what you've done wrong there.
Quote:
Originally Posted by
kfarrell
- I would like to add the www. in front of my URIs, but I don't know where to configure that option.
You can change that in your includes/configure.php and admin/includes/configure.php files.. change the address of your site so that it includes www.
Glad you like the module!
All the best...
Conor
ceon
Re: Ceon URI Mapping (SEO)
Hi Chris,
Quote:
Originally Posted by
baz4096
If this helps anyone solve this problem, please let me know.
That doesn't sound like a good fix. If you are getting 404 errors with an xml file then you should add in an appropriate rewrite rule condition to exclude that file from the rewrite, not break the code to compensate for it!
Make sure you are using the latest version of the module and the example rewrite rule in its docs (which doesn't rewrite anything ending in .xml, .php etc.).
All the best...
Conor
ceon
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
I'm afraid I don't know what you've done wrong there.
You can change that in your includes/configure.php and admin/includes/configure.php files.. change the address of your site so that it includes www.
Glad you like the module!
All the best...
Conor
ceon
Thanks so much for the reply and the advice! I did what you said with the configure files; however, nothing changed with the URIs. And I'm really at a loss with what to do with my admin console.
I still can't edit or delete (or I assume add) an EZ-Page except directly through the database with phpMyAdmin. I can add products--just tested that. I can edit products and categories, so we're good there, and most everything else is already set up, so I supposed I could just leave it broken, but... Do you or anyone you know do custom "repair" work--for a fee of course! I'm wondering if the non-change in the URIs and the broken EZPages are related.
BTW, is the admin/includes/configure.php file supposed to be read only? Mine is.
Thanks so very much for your help and your module!
Karen
Re: Ceon URI Mapping (SEO)
Uh Oh... Now I can't log in to the admin console at all. I was in, and everything was fine--I didn't even change anything, then I got logged out and I can't log back in. I tried adding a new admin user in the database, but that user can't log in either.
Any ideas? (The public site is still up--all this chaos is happening on the admin side and started right after I finished installing the module and realized I had put that html_output.php file in the wrong place and then moved it back to the right place.)
Thanks for your help!
Karen