Comments (6)
Does this fix resolve your problem?
from grav-plugin-yandex-turbo.
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.
Your PHP version? Please, upload a screenshot of this error.
from grav-plugin-yandex-turbo.
from grav-plugin-yandex-turbo.
Ok, now apply these changes.
from grav-plugin-yandex-turbo.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grav-plugin-yandex-turbo.