PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Attempt to read property "id" on null

amrhelw

Dec 22nd, 2022 08:15 AM

j9Qfk.png /home/ssmkngbx/domains/royaleg.co/public_html/platform/plugins/real-estate/src/Providers/HookServiceProvider.php app(TransactionInterface::class)->createOrUpdate([ 'user_id' => 0, 'account_id' => $payment->customer_id, 'credits' => $package->number_of_listings, 'payment_id' => $payment ? $payment->id : null, ]); } }, 123, 2); }

        if (defined('PAYMENT_FILTER_PAYMENT_DATA')) {
            add_filter(PAYMENT_FILTER_PAYMENT_DATA, function (array $data, Request $request) {
                $orderIds = [session('subscribed_packaged_id')];

                $package = $this->app->make(PackageInterface::class)
                    ->findById(Arr::first($orderIds));

                $products = [
                    [
                      'id' => $package->id,
                        'name' => $package->name,
                        'price' => $package->price,
                        'price_per_order' => $package->price,
                        'qty' => 1,
                    ],
                ];

                $account = auth('account')->user();

                $address = [
                    'name' => $account->name,
                    'email' => $account->email,
                    'phone' => $account->phone,
                    'country' => null,
                    'state' => null,
                    'city' => null,
                    'address' => null,
                    'zip' => null,
                ];

Arguments "Attempt to read property "id" on null"

bobbyiliev

Dec 22nd, 2022 08:23 AM

The error is caused due to your $payment variable being empty or not defined.

It would usually help if you provide some more information about the problem and the framework that you are using. This does not seem to be Wave.

amrhelw

Dec 22nd, 2022 08:51 AM

when user going to subscribe, follow link: https://royaleg.co/account/packages/3/subscribe

test user here:
https://royaleg.co/login

user: test pass: HIDDEN

I created admin account for you: https://royaleg.co/admin

login: helper pass: HIDDEN

you can find the Currencies setting @ left side->Real Estate->Setting

I needs help

bobbyiliev

Dec 23rd, 2022 01:46 AM

Hey,

This is a public forum, make sure not to post your credentials publicly.

I'm personally not familiar with the admin panel that you are using. Is this quickadminpanel? If so it is best to reach out to their support team as this is a paid product and I don't have access to the source code to make any suggestions.