Forums / Setup & design / Payal Returns to kernel (1) error

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/' );
}

eZ debug

Timing: Jan 19 2025 03:39:24
Script start
Timing: Jan 19 2025 03:39:24
Module start 'content'
Timing: Jan 19 2025 03:39:24
Module end 'content'
Timing: Jan 19 2025 03:39:24
Script end

Main resources:

Total runtime0.2076 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.9688180.8359
Module start 'content' 0.00800.0058 769.804793.8984
Module end 'content' 0.01380.1938 863.7031522.5781
Script end 0.2076  1,386.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.7780200.0002
Check MTime0.00140.6977200.0001
Mysql Total
Database connection0.00110.526810.0011
Mysqli_queries0.154074.15001410.0011
Looping result0.00170.79481390.0000
Template Total0.193493.210.1934
Template load0.00100.475310.0010
Template processing0.192592.682410.1925
Override
Cache load0.00070.341010.0007
Sytem overhead
Fetch class attribute can translate value0.00080.409310.0008
XML
Image XML parsing0.00030.134810.0003
General
dbfile0.00622.9617200.0003
String conversion0.00000.003830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0003 secs