Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8182047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:43:43+00:00 2026-06-07T00:43:43+00:00

My first question on codeigniter. I have integrated paypal in codeigniter using paypal library.

  • 0

My first question on codeigniter. I have integrated paypal in codeigniter using paypal library. everything working fine but when I return to success page then it gave me “An Error Occurred : The action you performed is not valid”. But the same success page is accessible directly from the url (I mean when I put it in the browser directly).

Controller

function form()
{
$this->paypal_lib->add_field('business', 'xxxxxxx@ymail.com');
$this->paypal_lib->add_field('return', site_url('checkout/paypal/success'));
$this->paypal_lib->add_field('cancel_return', site_url('checkout/paypal/cancel'));
$this->paypal_lib->add_field('notify_url', site_url('checkout/paypal/ipn')); 
$this->paypal_lib->
add_field($this->security->csrf_token_name,   $this->security->csrf_hash); 
}
function success()
{
  echo "success";
}   

Routes

$route['checkout/paypal'] = 'checkout/paypal/index';
$route['checkout/paypal/(:any)'] = "checkout/paypal/$1";

Success page is diretly accessible and prints “success” but when I return from paypal , it gave me “An Error Occurred”

In the apache log..getting 500 572. I am not pretty much sure what it reflects.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T00:43:44+00:00Added an answer on June 7, 2026 at 12:43 am

    Open your site’s main configuration file and check your CSRF settings. I had a similar problem once, and it was solved by disabling CSRF protection.

    $config['csrf_protection'] = FALSE;
    

    Does that make any difference?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm finishing up my first Codeigniter app and I have a question. Right now
Issue/Question : I'm using CodeIgniter to build an event calendar, and I have included
I have been developing a login library for a website using CodeIgniter. The authentication
First question: Say I have using (SqlConnection connection = new SqlConnection(connectionString)) { connection.Open(); string
First question on Stackoverflow (.Net 2.0): So I am trying to return an XML
First question here so hello everyone. The requirement I'm working on is a small
I'm working on a new php project with CodeIgniter and I have few questions
I implemented twitter posting button on my web site using twitter codeigniter library .)
First question, do I have to necessarily have a application container as the root
First question is: - I have a sql well-formatted string and I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.