Well, I uninstalled SSU and my shopping cart, login and contact us pages are working again.
If anyone has any suggestions about what went wrong I'd appreciate the info.
Thanks
Printable View
Well, I uninstalled SSU and my shopping cart, login and contact us pages are working again.
If anyone has any suggestions about what went wrong I'd appreciate the info.
Thanks
Well, removing SSU fixed the shopping cart and registration probs, but I still could not register as a new user. That one was a diff problem.
When an existing user tried to login the error msg said
ERROR_SECURITY_ERROR
I discovered that my template was missing the login timeout file that provides the security token. I copied all 3 login files (tpl_time_out_default.php, tpl_login_default.php , tpl_logoff_default.php) from the zen classic directory and login works fine now (just copying the missing one didn't work).
Source dir was
\zen-cart-v1.3.8a-full-fileset-12112007\includes\templates\template_default\templates
Copied to:
store root\includes\templates\My_Template_Name
I'm so sorry, but when i tried SSU again, the same problem accured. I did nothing but upload all the files. PLease view my website http://www.cufflinks1.com.
Now only the homepage of my site work. The following infos appear when i try to enter other pages:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.cufflinks1.com Port 80
The followings are Error log:
[Thu May 29 14:43:41 2008] [error] [client 80.181.53.58] PHP Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at '/usr/local/Zend/lib/Optimizer/php-5.2.x/ZendOptimizer.so') - try reinstalling the Zend Optimizer in Unknown on line 0
[Thu May 29 14:43:50 2008] [error] [client 209.85.238.21] PHP Warning: Zend Optimizer for PHP 5.2.x cannot be found (expected at '/usr/local/Zend/lib/Optimizer/php-5.2.x/ZendOptimizer.so') - try reinstalling the Zend Optimizer in Unknown on line 0
[Thu May 29 14:43:50 2008] [error] [client 58.35.130.21] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Thu May 29 14:43:50 2008] [error] [client 58.35.130.21] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Thu May 29 14:43:52 2008] [error] [client 58.35.130.21] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.cufflinks1.com
[Thu May 29 14:43:52 2008] [error] [client 58.35.130.21] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.cufflinks1.com
If you didn't edit the .htaccess file this can happen. You said you only uploaded the files; the hta edit is very important.
There is a lot more to do that is in \Simple SEO URL\docs\installation. My site was dead until I did every last single thing listed on this page.
First, Module Manager and the shared classes are really, really required.
REQUIREMENT:
1. mod_rewrite installed on your APACHE server
[mod-rewrite info is below]
2. Module Manager installed
http://zencart-module-manager.google...ager_rev15.zip
(link came from here: http://code.google.com/p/zencart-mod...downloads/list)
3. Shared class files installed (https://svn.rubikintegration.com/zen...hared_classes/)
These are just server dirs, so you have to manually download the files (maintain dir structure).
-----------------------------------------------------
I had to do this to get Module Manager working, my server did not let it create the file:
TROUBLESHOOTING:
After installing itself, this module writes a file named ".keep" in admin\includes\module_installation, if your server doesnt allow it to do so, it may make the module attempting to install itself everytime. The fix is easy though, just manually create a .keep file there (after the module has already installed itself, of course)
--------------------------------------------------------------
Then did you do this?
2. Visit Admin->Extra->SSU Manager once for the database patch to be applied automatically.
3. Clean cache if neccessary (you can now delete thru admin, please check usage.txt for more info).
------------------------------------------------------
To check for mod_rewrite you can do this:
from your webhost cPanel:
Go to System-->System Info-->PHP Info
Check section apache2handler (I use Apache 2).
You will find a line with loaded modules if mod_rewrite is among them, than it's OK. Else not.
----AND/OR-----
make a file called pinfo.php in your web servers data directory root
(/usr/local/www/data by default)
put this in it (only this!! no body/head/wc3 etc. use notepad if you have to):
<?php
phpinfo();
?>
save it and go to:
http://yourURL.com/pinfo.php
and read away. that will dump all php related info.
-------------------------------------------------------------
If you just want to see if mod_rewite is installed:
[from http://www.wallpaperama.com/disp-post19.html]
There are several ways to check if its working, I will try to show you the easiest way-
Create a .htaccess file (a text file named .htaccess) with the following code in it
Options +FollowSymLinks
RewriteEngine On
Save the file to a subdirectory of your main site something like this
/rewrite-testfolder/.htaccess
Now attempt to browse to the subdirectory (http://localhost/rewrite-testfolder/). One of two things could happen
- No errors Congrats mod_rewrite engine is now enabled.
- 500, Internal Server Error If you get this message then mod_rewrite was not installed/enabled on your computer.
If you get a 500 error, you can learn to how to enable mod_rewrite in apache by visiting this post:
http://www.wallpaperama.com/disp-post9.html
------------------------------------------------------
Read all the text files in the SSU docs folder! They will help.
Good Luck
--Pat
Any ideas on a fix for PayPal Ipn? Orders not coming thru
Even the one with Paypal IPN ? I've been struggling quite a lot with it but I have not really understood what actually happens yet. If it can help, here are the logs generated by the module:
Code:Jun 01 2008 15:22 -- Keys for submission: Array
(
[charset] => iso-8859-1
[lc] => FR
[page_style] => Primary
[custom] => zenid=dbd9e25d5b5790c22a0a714a5a6142ea
[business] => [email protected]
[return] => https://my_https_host/checkout_process/referer/paypal?zenid=dbd9e25d5b5790c22a0a714a5a6142ea
[cancel_return] => https://my_https_host/checkout_payment?zenid=dbd9e25d5b5790c22a0a714a5a6142ea
[shopping_url] => https://my_https_host/shopping_cart?zenid=dbd9e25d5b5790c22a0a714a5a6142ea
[notify_url] => https://my_https_host/ipn_main_handler.php
[redirect_cmd] => _xclick
[rm] => 2
[bn] => zencart
[mrb] => XXXXXXXXXXXXXXX
[pal] => XXXXXXXXXXXXXXXX
[first_name] => XXXX
[last_name] => XXXXXXX
[address1] => XXXXXXX
[city] => XXXXXXXXX
[state] => XXXX
[zip] => XXXX
[country] => X
[email] => [email protected]
[H_PhoneNumber] => XXXXXX
[night_phone_b] => XXXXXXX
[day_phone_b] => XXXX
[no_shipping] => 1
[upload] => 1
[currency_code] => EUR
[cmd] => _ext-enter
[item_name] => XXXXXXXXX
[item_number] => MODULE_PAYMENT_PAYPAL_PURCHASE_DESCRIPTION_ITEMNUM
[amount] => 7.20
[shipping] => 0.00
[tax] => 0.00
[tax_cart] => 0.00
)
Code:Jun 01 2008 15:27 -- IPN PROCESSING INITIATED.
*** Originating IP: 66.211.170.66 notify.paypal.com
Code:Jun 01 2008 15:27 -- PDT Returned Data Array
(
)
Jun 01 2008 15:27 -- PDT WARNING :: Order not marked as "Completed". Check for Pending reasons or wait for IPN to complete.
[payment_status] =>
[pending_reason] =>
Jun 01 2008 15:27 -- PDT WARNING :: Transaction already exists. Perhaps IPN already added it. PDT processing ended.
Code:Jun 01 2008 15:27 -- IPN INFO - POST VARS to be sent back for validation:
To: www.paypal.com:80
POST /cgi-bin/webscr HTTP/1.1
Host: www.paypal.com
Content-type: application/x-www-form-urlencoded
Content-length: 143
Connection: close
Array
(
[cmd] => _notify-sync
[tx] =>
[at] => XXXXXXXXXXXXXXXXXXX
)
Jun 01 2008 15:27 -- IPN INFO - Confirmation/Validation response
FAIL
Jun 01 2008 15:27 -- IPN WARNING :: PDT Transaction was not marked as SUCCESS. Keep this report for potential use in fraud investigations.
IPN Info =
FAIL
I don't understand how SSU could interfere with Paypal, but it does. However according to the logs it seems that there IS bidirectional communication:huh:.Code:Jun 01 2008 15:30 -- IPN PROCESSING INITIATED.
*** Originating IP: 66.211.170.66 notify.paypal.com
Unfortunately I can't use SSU until this problem can be solved...
Please show up if you need some help to code or to do some tests for your new version.
Oh, and maybe I should mention that the payment is accepted by Paypal, but Zen Cart does not receive any notification of it, so it does not appear in the admin homepage.
Hi all,
Just wondering if anyones has had this problem and conquered it?
i have installed this mod and it seems to be working great but there are a few links that don't work. An example is on the product info page. The tell a friend link displays as:
http://my_domain/tell_a_friend/%s.
All the problem ones all have the %s/%p things happening and display a bad request. 95% of links are all working fine though.
I only have it locally at the mo so i cant post an example but i have checked out a few other carts who have the mod live and find the same problem.
thanks for any hints.:smile:
You can decide to manually add each of these pages to the exclude list (admin -> configuration -> Simple SEO URL -> exclude list). Personally I decided to modify the function ssu_params in includes/init_includes/init_ssu.php this way:
Thanks to $only_products_id and $both_id, we can process the links referring to pages which are not product or category pages, but whose URL contain category or product identifiers (like tell_a_friend and product_reviews_write).Code:// this function takes the parameters in the query string and turns that to our nice looking link
function ssu_params(&$page, $parameters, $re_calculate_cpath= false){
$parameters = trim($parameters,' ?&');
$cachefile = $this->pc_cache_folder.md5($page.$parameters);
$params = '';
$use_cache = false;
$set_cache = false;
$contains_cpath = (strpos($parameters,'cPath=') !== false);
$contains_products_id = (strpos($parameters,'products_id=') !== false);
$is_product_info_page = in_array($page, $this->products_handlers);
$is_category_page = ($page == 'index' && $contains_cpath);
$both_id = (!$is_product_info_page && !$is_category_page && $contains_cpath && $contains_products_id);
$only_products_id = (!$contains_cpath && $contains_products_id);
if(!empty($parameters)){
// if this contains cPath or products_id lets attempt to use cache
if($contains_cpath || $contains_products_id){
$use_cache = true;
if (($params = @file_get_contents($cachefile)) === false)
$set_cache = true;
}
// process params if we dont use cache or need to reset cache
if(!$use_cache || $set_cache){
// No need for '?'
//$parameters = str_replace('?', '', $parameters);
$parameters = str_replace(array('&','&','=','?'),'/',$parameters);
// clean up
//$parameters = preg_replace('/\/\/+/', '/', $parameters);
$parameters = trim($parameters, '/');
$cPath='';
$products_id='';
// Appending category name and product name into the link
$parameters = explode('/',$parameters);
$param_counter = count($parameters);
// we want to make sure the order of params for product info and category pages
if($is_product_info_page || $both_id)
$params = "%s/%p";
elseif($is_category_page)
$params = "%s";
elseif($only_products_id)
$params = "%p";
for($i=0; $i < $param_counter; $i++){
if($parameters[$i]=='cPath'){
$cPath = $parameters[++$i];
if(!$is_product_info_page && !$is_category_page && !$both_id)
$params .= "/%s";
}
elseif($parameters[$i]=='products_id'){
$products_id = $parameters[++$i];
if(!$is_product_info_page && !$is_category_page && !$only_products_id && !$both_id)
$params .= "/%s";
}
elseif(!empty($parameters[$i]) && !empty($parameters[$i+1])){
$params .= "/".$parameters[$i]."/".$parameters[++$i];
}
else
$i++;
}
// dont trust the info passed to us, always rebuild the cPath in this case
if($is_product_info_page && !empty($products_id)){
$cPath = zen_get_product_path($products_id);
}
elseif(!empty($cPath) && $re_calculate_cpath && !empty($products_id)){
$cPath = zen_get_product_path($products_id);
}
if(!empty($cPath)){
$params = str_replace('%s', $this->get_category_name($cPath), $params);
}
if(!empty($products_id)){
$params = str_replace('%p', $this->get_product_name($products_id), $params);
}
}
}
if($is_product_info_page || $is_category_page)
$page ='';
$params = trim($params, '/');
if($set_cache) $this->_write_to_file($cachefile, trim($params,'/')); // we cache the whole link so that we dont have to recalculate it again
// TODO: change the way we check if the language is already in the link
$params .= (isset($_SESSION['languages_code']) && strpos($params, 'language/') === false && $_SESSION['languages_code'] != DEFAULT_LANGUAGE) ? '/language/' . $_SESSION['languages_code'] : '';
return $params;
}
If you want to use this solution, you can cut and paste the code, overwrite init_ssu.php with the file in attachment, or use the patch with the command "patch -p0 < init_ssu.patch".
Of course this is provided without any warranty and should be tested before using it on your Zen Cart shop (in your case it seems you already use a test shop, though).
I had not proposed yet these modifications as I was not sure everyone met this problem.
To hunt dead or broken links on a website, you can use lynx (lynx -accept_all_cookies -traversal -crawl -realm PATH_TO_YOUR_LOCAL_WEBSITE) or Xenu (wich unfortunately only has a Windows version but it works fine with wine). Of course it is best to use it on your own PC or local network as it consumes A LOT of bandwith.
Hope this helps,
FMB.