♥FWR Media Posted February 11, 2008 Author Share Posted February 11, 2008 (edited) By constant yes this was the error i got when i opened a product from the index page and when i clicked a category. be it any category Pooya we are not understanding each other .. and you post then dissappear. Sorry but I can't support your issue. If you want to give me ftp access then I'll try to help but I can't help like this. Edited February 11, 2008 by Babygurgles Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Pooya Posted February 12, 2008 Share Posted February 12, 2008 Errrrr .... Told you to come on msn :( or any messenger, this way we could be in touch fully. Let me know of what to do. Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted February 12, 2008 Author Share Posted February 12, 2008 Errrrr .... Told you to come on msn :( or any messenger, this way we could be in touch fully. Let me know of what to do. One last go .. What we know is that the following link produces the error .. http://www.vmart.pk/main/cdr-cdrw-c-2.html The following is what I asked for .. Here is a test I would like to see the results when you click on that very same link http://www.vmart.pk/main/cdr-cdrw-c-2.html Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Pooya Posted February 12, 2008 Share Posted February 12, 2008 Hey, while being bored i did the following. Firstly removed the REMOVE ME LINES Then changed $validate_array = explode('-ex-', $querytype); To $validate_array = explode('--ex--', $querytype); Also removed the Enter special character conversions And it resulted to the following below when clicked on a category. Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359 Error! Unable to determine the page link! ----------------------------------------------- THis is with the REMOVE ME LINES. $validate_array[0] = FILENAME_PRODUCT_INFO-EX-PRODUCTS_ID=620 $validate_array[1] = $querytype = filename_product_info-ex-products_id=620 $_SERVER['REQUEST_URI'] = /main/logitech-mini-mouse-optical-p-620.html --------- $validate_array[0] = FILENAME_DEFAULT-EX-CPATH=98 $validate_array[1] = $querytype = filename_default-ex-cPath=98 $_SERVER['REQUEST_URI'] = /main/floppy-disks-c-98.html Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted February 12, 2008 Author Share Posted February 12, 2008 Hey, while being bored i did the following.Firstly removed the REMOVE ME LINES Then changed $validate_array = explode('-ex-', $querytype); To $validate_array = explode('--ex--', $querytype); Also removed the Enter special character conversions And it resulted to the following below when clicked on a category. Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359 Error! Unable to determine the page link! ----------------------------------------------- THis is with the REMOVE ME LINES. $validate_array[0] = FILENAME_PRODUCT_INFO-EX-PRODUCTS_ID=620 $validate_array[1] = $querytype = filename_product_info-ex-products_id=620 $_SERVER['REQUEST_URI'] = /main/logitech-mini-mouse-optical-p-620.html --------- $validate_array[0] = FILENAME_DEFAULT-EX-CPATH=98 $validate_array[1] = $querytype = filename_default-ex-cPath=98 $_SERVER['REQUEST_URI'] = /main/floppy-disks-c-98.html Well it would do Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359 you broke the explode. Which bit of my above post didn't you understand??? Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
♥FWR Media Posted February 12, 2008 Author Share Posted February 12, 2008 Hey, while being bored i did the following.Firstly removed the REMOVE ME LINES Then changed $validate_array = explode('-ex-', $querytype); To $validate_array = explode('--ex--', $querytype); Also removed the Enter special character conversions And it resulted to the following below when clicked on a category. Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359 Error! Unable to determine the page link! ----------------------------------------------- THis is with the REMOVE ME LINES. $validate_array[0] = FILENAME_PRODUCT_INFO-EX-PRODUCTS_ID=620 $validate_array[1] = $querytype = filename_product_info-ex-products_id=620 $_SERVER['REQUEST_URI'] = /main/logitech-mini-mouse-optical-p-620.html --------- $validate_array[0] = FILENAME_DEFAULT-EX-CPATH=98 $validate_array[1] = $querytype = filename_default-ex-cPath=98 $_SERVER['REQUEST_URI'] = /main/floppy-disks-c-98.html Well it would do Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359 you broke the explode. Which bit of my above post didn't you understand??? The following is what I asked for .. Here is a test I would like to see the results when you click on that very same link http://www.vmart.pk/main/cdr-cdrw-c-2.html Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
blafrog Posted February 12, 2008 Share Posted February 12, 2008 Wait a minute!!! this is a bog standard feature of ULTIMATE SEO URLs. Go into admin>configuration>SEO URLs Enable automatic redirects? > TRUE It was set TRUE, didn't work. Have you tried this on your site? When you type http://yoursite.com/index.php?cPath=10 Will it automatically redirect to? http://yoursite.com/yourcat-c-10.html Btw, I have tried 2.1d and 2.2e. Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted February 12, 2008 Author Share Posted February 12, 2008 It was set TRUE, didn't work. Have you tried this on your site? When you type http://yoursite.com/index.php?cPath=10 Will it automatically redirect to? http://yoursite.com/yourcat-c-10.html Btw, I have tried 2.1d and 2.2e. My test site has RC2a with 2.1d and my mod. It redirects fine. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2008 Share Posted February 12, 2008 I just wanted to say, I've been spending way too much time trying to figure out why google sitemaps were getting redirect errors. I installed Post #50ish and it's working great. I have one question though. What is the SQL file for? the instructions don't mention to run it or not. If anyone would like to see my site as an example it is http://www.safetygears.net hopefully the next time google sitemaps comes around to crawl, all the errors will go away. Quote Link to comment Share on other sites More sharing options...
Pooya Posted February 12, 2008 Share Posted February 12, 2008 Well it would do Warning: constant() [function.constant]: Couldn't find constant FILENAME_DEFAULT-EX-CPATH=102 in /home/vmartpk/public_html/main/includes/functions/general.php on line 1359 you broke the explode. Which bit of my above post didn't you understand??? Sorry guess i was being dumb :( Anywho the following are the results $validate_array[0] = FILENAME_DEFAULT-EX-CPATH=2 $validate_array[1] = $querytype = filename_default-ex-cPath=2 $_SERVER['REQUEST_URI'] = /main/cdr-cdrw-c-2.html **This is with $validate_array = explode('--ex--', $querytype); ------------------------------- $validate_array[0] = FILENAME_DEFAULT $validate_array[1] = cPath=2 $querytype = filename_default-ex-cPath=2 $_SERVER['REQUEST_URI'] = /main/cdr-cdrw-c-2.html **This is with $validate_array = explode('-ex-', $querytype); ------------- Do tell which explode to use :) Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted February 12, 2008 Author Share Posted February 12, 2008 Sorry guess i was being dumb :( Anywho the following are the results $validate_array[0] = FILENAME_DEFAULT-EX-CPATH=2 $validate_array[1] = $querytype = filename_default-ex-cPath=2 $_SERVER['REQUEST_URI'] = /main/cdr-cdrw-c-2.html **This is with $validate_array = explode('--ex--', $querytype); ------------------------------- $validate_array[0] = FILENAME_DEFAULT $validate_array[1] = cPath=2 $querytype = filename_default-ex-cPath=2 $_SERVER['REQUEST_URI'] = /main/cdr-cdrw-c-2.html **This is with $validate_array = explode('-ex-', $querytype); ------------- Do tell which explode to use :) Pooya your version uses -ex- so use -ex- This .. $validate_array[0] = FILENAME_DEFAULT $validate_array[1] = cPath=2 $querytype = filename_default-ex-cPath=2 $_SERVER['REQUEST_URI'] = /main/cdr-cdrw-c-2.html Is a perfect response The next stage in the code is .. $linkreturned = tep_href_link(constant(strtoupper($validate_array[0])), $validate_array[1]); Well $validate_array[0] is fine as we know it's FILENAME_DEFAULT $validate_array[1] is also fine as we know it is cPath=2 Sooo .. it should build a perfect SEO link via tep_href_link The problem seems to be then that your server doesn't like constant(strtoupper($validate_array[0])); Try this where you tried the last code and see if it kicks an error .. // REMOVE ME 2 $lower = 'filename_default'; die (constant(strtoupper($lower))); // REMOVE ME 2 Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Pooya Posted February 12, 2008 Share Posted February 12, 2008 THe results... Yo TOld me to look for $linkreturned = tep_href_link(constant(strtoupper($validate_array[0])), $validate_array[1]); But i have $linkreturned = tep_href_link(constant('' . strtoupper($validate_array[0]) . ''), $validate_array[1]); Anyways, i added the remove me 2 code to the same place. And i got this as error ECHO : index.php **This is on any product i click or category. And im using -ex- explode. Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted February 12, 2008 Author Share Posted February 12, 2008 Replace your $linkreturned line with: - $linkreturned = tep_href_link(constant(strtoupper($validate_array[0])), $validate_array[1]); Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Pooya Posted February 12, 2008 Share Posted February 12, 2008 Shows index.php Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted February 12, 2008 Author Share Posted February 12, 2008 Shows index.php LOL take out the all the // REMOVE ME after doing the above. you never know .. it may actually work :D Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
♥FWR Media Posted February 13, 2008 Author Share Posted February 13, 2008 This has now been released as a contribution, this thread is therefore closed. Support will continue here . . http://www.oscommerce.com/forums/index.php?showtopic=292791 Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Jada Posted February 16, 2008 Share Posted February 16, 2008 (edited) Looking for some direction. I installed SEO v2.0b and all seemed well until I tried selecting any product or category.....I am directed to blank page after blank page with no error message or anything. I am a newbie so forgive me if this question has been answered in a different forum. Trust me I have been looking. The installation went smoothly and the only hiccups were 1.) while following the additional installation instructions I did a second sql update and the fields where already in the table and 2.) the htaccess edit that i needed add requested i add my catalog folder location and i used : public_html here is the code Options +FollowSymLinks RewriteEngine On RewriteBase /public_html/ I am turning off the SEO for know but I would really like to have it working, so any help would be appreciated. The site is: Gany Direct Thanks Jada Edited February 16, 2008 by Jada Quote Jada The codes of the many, outweigh the codes of the few. Live long and Prosper. Link to comment Share on other sites More sharing options...
♥FWR Media Posted February 16, 2008 Author Share Posted February 16, 2008 (edited) Looking for some direction. I installed SEO v2.0b and all seemed well until I tried selecting any product or category.....I am directed to blank page after blank page with no error message or anything. I am a newbie so forgive me if this question has been answered in a different forum. Trust me I have been looking. The installation went smoothly and the only hiccups were 1.) while following the additional installation instructions I did a second sql update and the fields where already in the table and 2.) the htaccess edit that i needed add requested i add my catalog folder location and i used : public_html here is the code Options +FollowSymLinks RewriteEngine On RewriteBase /public_html/ I am turning off the SEO for know but I would really like to have it working, so any help would be appreciated. The site is: Gany Direct Thanks Jada Firstly you should be using the first posted 2.1d put up by Yesudo. Secondly. If store is in root (www.mysite.com) use .. Options +FollowSymLinks RewriteEngine On RewriteBase / If store is in a directory (www.mysite.com/catalog/) use ... Options +FollowSymLinks RewriteEngine On RewriteBase /catalog/ Bare in mind that your folder may be called something other than catalog .. /shop/ for example. And btw this topic is regarding Independent validation for SEO URLs NOT ULTIMATE SEO URLs This topic is also CLOSED Edited February 16, 2008 by Babygurgles Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.