Giter Site home page Giter Site logo

Comments (6)

dragomano avatar dragomano commented on September 27, 2024

Does this fix resolve your problem?

from grav-plugin-yandex-turbo.

hardcorp74 avatar hardcorp74 commented on September 27, 2024

After update new issue (Arguments "Undefined property: stdClass::$metadata")

foreach ($collection as $page) {
                $header = $page->header();
                $page_ignored = isset($header->external_url) || isset($header->access);
 
                if (!$page_ignored) {
                    $entry = new \stdClass();
                    $entry->title = $page->title();
                    $entry->link = $page->canonical();
                    $entry->date = date(DATE_RFC822, $page->date());
                    $entry->author = $header->metadata['author'] ?: $header->author['name'] ?: '';
                    $entry->media = $page->media()->images();
                    $entry->content = $header->metadata['description'] ?: strip_tags($page->summary());
                    $entry->active = isset($header->yandex_turbo['active']) ? (bool) $header->yandex_turbo['active'] : true;
                    $this->items[$page->route()] = $entry;
                }
            }
        }
 
        if (!empty($cache_id)) {
            $cache->save($cache_id, $this->items);
        }
 
        $this->grav->fireEvent('onYandexTurboProcessed', new Event(['turbo' => &$this->items]));
    }
 
    /**
     * Define twig-template and md-page for turbo RSS
     *
     * @return void
     */

Arguments
"Undefined property: stdClass::$metadata"

from grav-plugin-yandex-turbo.

dragomano avatar dragomano commented on September 27, 2024

Your PHP version? Please, upload a screenshot of this error.

from grav-plugin-yandex-turbo.

hardcorp74 avatar hardcorp74 commented on September 27, 2024

Image 2
Image 3

from grav-plugin-yandex-turbo.

dragomano avatar dragomano commented on September 27, 2024

Ok, now apply these changes.

from grav-plugin-yandex-turbo.

hardcorp74 avatar hardcorp74 commented on September 27, 2024

Ok, cool works
image

But some question, maybe Feature Request... if i have Landing page - and blog... .../blog - maybe usefull - set path for it /blog?
Because need 10 pages min for working. And it all in /blog...

from grav-plugin-yandex-turbo.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.