Payal Returns to kernel (1) error

Author Message

Michael Dowdell

Wednesday 14 September 2005 10:16:17 am

When returning to the Site from a PayPal purchase, I receive the following error. I assume this is a problem with checkout as /shop/userregister does not create or enforce creating a user. Is this a bug or my misconfiguration? Please advise.

<b>kernel(1) error.

Returning URL = http://myurl/index.php/shop/orderview/6

Access denied
You don't have permission to access this area.

Possible reasons for this are:

You are currently not logged in to the site, to get proper access create a new user or login with an existing user.
You misspelled some parts of your URL, try changing it. </b>

Michael Dowdell

Wednesday 14 September 2005 5:07:14 pm

UPDATE: This screen with the above error also contains the login fields. When I logged in as an existing known user (not related to the purchase) the purchase confirmation screen displayed as it was supposed to display to the purchasing user (kind of an information breach). Tailoring the orderview in the url allowed access to all purchaser information. It looks as if this is an error in the checkout flow which needs to have the purchaser go to registration/login first, then restrict pages based upon the userid. I'm new to eZ's admin interface, having trouble setting up a workflow to accomplish this programaticly and the documentation isn't giving me much in the line of guidance. I'm fine with the coding, any insight would be helpfull on the sub structure to enable it in the UI.

Michael Dowdell

Thursday 15 September 2005 1:21:38 pm

For others that may come accross this problem. Adding an Else statement to the existing user check function as shown below will redirect a user who is not logged in to the login page and return them once logged in. An unregistered user who registers will lose the purchase flow but a few descriptive links in the /kernel/user/active.php can bring them back to userregister.php to continue.

line 56: /kernel/shop/userregister.php

if ( $user->isLoggedIn() )
{
    $userObject = $user->attribute( 'contentobject' );
    $userMap = $userObject->dataMap();
    $firstName = $userMap['first_name']->content();
    $lastName = $userMap['last_name']->content();
    $email = $user->attribute( 'email' );
}else{
	$module->redirectTo( '/user/login/' );
}

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 06:28:50
Script start
Timing: Jan 19 2025 06:28:50
Module start 'layout'
Timing: Jan 19 2025 06:28:50
Module start 'content'
Timing: Jan 19 2025 06:28:51
Module end 'content'
Timing: Jan 19 2025 06:28:51
Script end

Main resources:

Total runtime0.9779 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.1563152.6250
Module start 'layout' 0.00560.0029 741.781339.4609
Module start 'content' 0.00850.9679 781.2422437.9688
Module end 'content' 0.97640.0014 1,219.210912.1563
Script end 0.9778  1,231.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3333160.0002
Check MTime0.00130.1298160.0001
Mysql Total
Database connection0.00090.089910.0009
Mysqli_queries0.934095.5110550.0170
Looping result0.00060.0622530.0000
Template Total0.933595.520.4668
Template load0.00240.240720.0012
Template processing0.931295.223520.4656
Template load and register function0.00030.026710.0003
states
state_id_array0.00110.114110.0011
state_identifier_array0.00070.075020.0004
Override
Cache load0.00190.1947170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.050510.0005
Fetch class attribute name0.00090.093530.0003
XML
Image XML parsing0.00010.013610.0001
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00070.0671100.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs