Can't log in to GNOME after upgrade (raring -> saucy)
1,543
Someone mangled with PATH.
Edit your .profile
and add to the end:
PATH="/sbin:/usr/sbin:$PATH"
Then restart lightdm:
sudo service lightdm restart
It's maybe the bug stated by darkhole
Related videos on Youtube
Author by
Chiggy
Updated on September 18, 2022Comments
-
Chiggy over 1 year
I am using Stripe as a payment gateway for a site i designed. I have been able to create and charge customers however, I want to also store the customer ids in my database. How can i retrieve the customer id? here is my code snippet:
....
// Create a Customer $customer = \Stripe\Customer::create(array( 'email' => $email, 'card' => $token, //'address_line1' = $addr1 . " ". $addr2 . " ". $city . " " . " " .$country , //'address_zip' = $postcode, 'description' =>'Partnership' . " " . $fname . " " . $lname )); // Charge the Customer instead of the card $charge = \Stripe\Charge::create(array( 'customer' => $customer->id, 'amount' => $amount, 'currency' => 'gbp', "metadata" => array("order_id" => "6735") )); //retrieve customer id $customerId = \Stripe\Charge::retrieve($charge['customer']);
This is the error message I got:
Notice: Undefined variable: charge Fatal error: Uncaught exception 'Stripe\Error\InvalidRequest' with message 'Could not determine which URL to request: Stripe\Charge instance has invalid ID: ' in .... 1. enter code here
-
Markinson about 6 yearsHow did you solve this? I need a little help with it
-
-
x-yuri over 10 years
-
x-yuri over 10 yearsOh, I've got no domain controller on my network.
-
x-yuri over 10 yearsYou saved my day, the problem was with the
PATH
. This bug seems more relevant. I'd add though that the PATH to be expected is in/etc/environment
. -
Calimo over 9 yearsFantastic, this saved my ass! I had played with /etc/environment during the update, as I had added stuff there previously and it was causing other problems. I had disabled the whole
PATH=
line and thesbin
stuff were gone. Not sure if the OP had done exactly the same. -
vcapra1 over 9 yearsI would upvote this 10,000 times if I could. This fixed the problems I have been having for days now!