tylerdiaz / Crysandrea

Open Source avatar community engine.
Other
17 stars 11 forks source link

Donation Redirect #7

Closed KasheenaTTV closed 10 years ago

KasheenaTTV commented 10 years ago

After a donation, the redirect isn't properly redirecting.

An Error Was Encountered

Unable to load the requested file: donate/success.php

I substituted \application\views\partials\notices\success.php into the \application\views\donate folder

Now I'm getting this error, but now I have the layout around the error instead of a 404-error kind of response from the server.

tylerdiaz commented 10 years ago

I don't understand the report. Which error are you referring to when you say "Now I'm getting this error"

KasheenaTTV commented 10 years ago

Sorry! Forgot to paste it in.

A PHP Error was encountered

Severity: Notice Message: Undefined variable: header Filename: donate/success.php Line Number: 2

A PHP Error was encountered

Severity: Notice Message: Undefined variable: data Filename: donate/success.php Line Number: 3

tylerdiaz commented 10 years ago

If you look inside the file /application/views/partials/notices/success.php, you'll find both those variables. The reason it's erring is because that file is not meant to be used that way.

I recommend you place the file back, and create a new success.php file for the donation view and return plain text in it. I'll commit this change in the repository shortly, you should pull from the master branch in a few minutes.

tylerdiaz commented 10 years ago

Done. Can you verify that fixes the issue?

KasheenaTTV commented 10 years ago

It's fixed! Thanks.