maxf5

Members
  • Content count

    107
  • Joined

  • Last visited

  • Days Won

    1

maxf5 last won the day on November 4 2017

maxf5 had the most liked content!

Community Reputation

78 Excellent

About maxf5

  • Rank
    Sr. Member
  • Birthday January 30

Profile Information

  • Location
    Deutschland
  • Interests
    schalke04, whisky, rock 'n roll

Recent Profile Visitors

557 profile views
  1. Hi @FrancisChung, yes i am on the latest version (2017.3.2). Maybe let's read some PHPStorm documentations to make it run.
  2. There is the .phpstorm.meta.php in the wire folder with a note from Ryan. Who can bring it up to work? <?php /** * ProcessWire PhpStorm Meta * * This file is not a CODE, it makes no sense and won't run or validate * Its AST serves PhpStorm IDE as DATA source to make advanced type inference decisions. * * @see https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Advanced+Metadata */ $STATIC_METHOD_TYPES = [ \wire('') => [ '' == '@', 'config' instanceof \ProcessWire\Config, 'cache' instanceof \ProcessWire\WireCache, 'wire' instanceof \ProcessWire\ProcessWire, 'log' instanceof \ProcessWire\WireLog, 'notices' instanceof \ProcessWire\Notices, 'sanitizer' instanceof \ProcessWire\Sanitizer, 'database' instanceof \ProcessWire\WireDatabasePDO, 'db' instanceof \ProcessWire\DatabaseMysqli, 'cache' instanceof \ProcessWire\MarkupCache, 'modules' instanceof \ProcessWire\Modules, 'procache' instanceof \ProCache, 'fieldtypes' instanceof \ProcessWire\Fieldtypes, 'fields' instanceof \ProcessWire\Fields, 'fieldgroups' instanceof \ProcessWire\Fieldgroups, 'templates' instanceof \ProcessWire\Templates, 'pages' instanceof \ProcessWire\Pages, 'permissions' instanceof \ProcessWire\Permissions, 'roles' instanceof \ProcessWire\Roles, 'users' instanceof \ProcessWire\Users, 'user' instanceof \ProcessWire\User, 'session' instanceof \ProcessWire\Session, 'input' instanceof \ProcessWire\WireInput, 'languages' instanceof \ProcessWire\Languages, 'page' instanceof \ProcessWire\Page, 'hooks' instanceof \ProcessWire\WireHooks, 'files' instanceof \ProcessWire\WireFileTools, 'datetime' instanceof \ProcessWire\WireDateTime, 'mail' instanceof \ProcessWire\WireMailTools ], \Wire::wire('') => [ // this one does not appear to work, leaving in case someone knows how to make it work '' == '@', 'config' instanceof \ProcessWire\Config, 'cache' instanceof \ProcessWire\WireCache, 'wire' instanceof \ProcessWire\ProcessWire, 'log' instanceof \ProcessWire\WireLog, 'notices' instanceof \ProcessWire\Notices, 'sanitizer' instanceof \ProcessWire\Sanitizer, 'database' instanceof \ProcessWire\WireDatabasePDO, 'db' instanceof \ProcessWire\DatabaseMysqli, 'cache' instanceof \ProcessWire\MarkupCache, 'modules' instanceof \ProcessWire\Modules, 'procache' instanceof \ProCache, 'fieldtypes' instanceof \ProcessWire\Fieldtypes, 'fields' instanceof \ProcessWire\Fields, 'fieldgroups' instanceof \ProcessWire\Fieldgroups, 'templates' instanceof \ProcessWire\Templates, 'pages' instanceof \ProcessWire\Pages, 'permissions' instanceof \ProcessWire\Permissions, 'roles' instanceof \ProcessWire\Roles, 'users' instanceof \ProcessWire\Users, 'user' instanceof \ProcessWire\User, 'session' instanceof \ProcessWire\Session, 'input' instanceof \ProcessWire\WireInput, 'languages' instanceof \ProcessWire\Languages, 'page' instanceof \ProcessWire\Page, 'hooks' instanceof \ProcessWire\WireHooks, 'files' instanceof \ProcessWire\WireFileTools, 'datetime' instanceof \ProcessWire\WireDateTime, 'mail' instanceof \ProcessWire\WireMailTools ], ];
  3. +1 for that! Still waiting for a ProcessWire Plugin for PhpStorm. All those lints are horrible
  4. I fixed the problem now after checking all modules. The website was intended to be multilingual, so i prepared all the fields to be multilingual (text, textarea, url). After the launch of the site the multilingual feature wasn't needed anymore, so i deleted the second language but forgot to reset all the fields to be not multingual. In 3.0.84 i had no problems, in 3.0.85 i get errors. But it now runs as it should on 3.0.88
  5. Hi guys, i built a site on 3.0.80 i think. I could update the site every week to the newest dev version without problems until 3.0.84. On the frontend and when i want to edit a page in the backend i have this error:
  6. Today i gave an -mostly wordpress- agency access to the backend for writing news, editing seo settings etc. First thing from them was: Is that a cms or pinterest? I didn't recognized it until then
  7. Yes, sorry for the short message. When i want to update from 3.0.84 to 3.0.85 this error appears. the frontend is crashed and the backend is in whitescreen. It happens when i update via the upgrades module or manually via ftp upload. /** * Provides direct reference access to variables in the $data array * * Otherwise the same as get() * * @param string $key * @return mixed|null * */ public function __get($key) { return $this->get($key); }
  8. Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in xxx/wire/core/WireData.php on line 329
  9. https://www.captiva-power.de (german pc and notebook producer/distributor) Ups, just saw your blog and you already used it
  10. Hey @Soma thank you. I already know that solution and i am using it for the website, 'selector' => 'navhide!=1', (it's a checkbox) I wanted to get something dynamic when a new children is added. The parent is the news-listing and the children are the news; you get the point. I can live with that workaround for the moment
  11. Hey guys, i want to limit the children of a page (id:1101) to 3 children. Can somebody help me with the hook? selector_level2" => "limit=3" <- this would do it for all parents.. best regards
  12. Do you have an email field in the form? Make sure that in this field settings under input -> verify email address is not checked. the form is counting this field as two fields instead of one and you will get that error.
  13. Hm, it should work that way and has nothing to do with your tabs. Check the id (1006) again, maybe it's just a typo Is that page unpublished maybe?
  14. I normally would do the following. So you don't have to echo everything in strings. <?php $imgoptions = [ 'quality' => 100, 'upscaling' => false, ]; $products = $page->siblings("id!=$page"); ?> <?php foreach ($products as $prod) : ?> <div class='uk-width-1-2@s'> <?php if (count($prod->images)) : ?> <?php $fatboy = $prod->url; $thumb = $prod->images->first()->height(300, $imgoptions)->url; $w414 = $prod->images->first()->width(414)->url; $w320 = $prod->images->first()->width(320)->url; $imgdesc = $prod->images->first()->description; ?> <a href='<?= $fatboy; ?>'> <img class='lazyload prod-thumb-ov' src='<?= $thumb ?>' data-src='<?= $thumb ?>' data-srcset='<?= $w414 ?> 414w,<?= $w320 ?> 320w' data-sizes='auto' alt='<?= $imgdesc ?>'> </a> <?php endif; ?> </div> <div class='uk-width-1-2@s'> <?= $prod->title ?> </div> <?php endforeach; ?> Seperating the logic from the view is always good. but this doesn't count as spaghetti code so far
  15. Alright, will do it when all features are ready. What do you mean exactly in the dropdown, notebooks and tablets look bigger compared to the others?