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

Share:
1,543

Related videos on Youtube

Chiggy
Author by

Chiggy

Updated on September 18, 2022

Comments

  • Chiggy
    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
      Markinson about 6 years
      How did you solve this? I need a little help with it
  • x-yuri
    x-yuri over 10 years
    Here it is. There are two files (+ old one) and they are identical. However, as far as I can tell when I looked into it, it was like this.
  • x-yuri
    x-yuri over 10 years
    Oh, I've got no domain controller on my network.
  • x-yuri
    x-yuri over 10 years
    You 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
    Calimo over 9 years
    Fantastic, 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 the sbin stuff were gone. Not sure if the OP had done exactly the same.
  • vcapra1
    vcapra1 over 9 years
    I would upvote this 10,000 times if I could. This fixed the problems I have been having for days now!