Jump to content

hellomoto

Members
  • Content Count

    293
  • Joined

  • Last visited

Community Reputation

42 Excellent

About hellomoto

  • Rank
    Sr. Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

4,409 profile views
  1. I can't get my http404 page to display, it's just blank/generic when receiving a 404 response. How to configure it to use my error page?
  2. Instead of messing with all that I just installed PW fresh and imported the DB (I FOUND A DUMP✊) and copied in the relevant files. FOUND A DUMP.👏 But so now I'm doing that again with another site, and on the Pages page under the Admin I get an alert that just says, "Unknown error, please try again later" and no pages load. The Find/lister and Recent pages don't seem to have a problem, but after some time spent on the page the same alert pops up. Also some modules when I try to check for updates notify "ProcessModule: Error reported by web service: That module is not currently tracked by the modules directory" and that same alert will then pop up, modules that [are not in PW DB online] in the Debug Mode Tools under Autoload say "Unable to locate file for this class" (Debugger itself? is included among those). Also the lightning icon (hover) submenu (Reno Admin) don't load for any of the Pages subs (Tree, Find, Recent), just stays whirring loading.
  3. This is a long shot I'm sure, but I converted a site backup database from MyISAM files to SQL via RebaseData's PHP API and am getting this response attempting to access the site now: Fatal error: Exception: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'boo_pw.pages.parent_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (in /Users/boo/WWW/booa/wire/core/WireDatabasePDO.php line 390) #0 /Users/boo/WWW/booa/wire/core/WireDatabasePDO.php(390): PDOStatement->execute() #1 /Users/boo/WWW/booa/wire/core/PagesLoader.php(600): ProcessWire\WireDatabasePDO->execute(Object(PDOStatement)) #2 /Users/boo/WWW/booa/wire/core/Pages.php(154): ProcessWire\PagesLoader->getById(Array) #3 /Users/boo/WWW/booa/wire/core/ProcessWire.php(335): ProcessWire\Pages->init() #4 /Users/boo/WWW/booa/wire/core/ProcessWire.php(295): ProcessWire\ProcessWire->initVar('pages', Object(ProcessWire\Pages)) #5 /Users/boo/WWW/booa/wire/core/ProcessWire.php(118): ProcessWire\ProcessWire->load(Object(ProcessWire\Config)) #6 /Users/boo/WWW/booa/index.php(52): ProcessWire\ProcessWire->__const in /Users/boo/WWW/booa/index.php on line 64 Error: Exception: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #4 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'boo_pw.pages.parent_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (in /Users/boo/WWW/booa/wire/core/WireDatabasePDO.php line 390) #0 /Users/boo/WWW/booa/wire/core/WireDatabasePDO.php(390): PDOStatement->execute() #1 /Users/boo/WWW/booa/wire/core/PagesLoader.php(600): ProcessWire\WireDatabasePDO->execute(Object(PDOStatement)) #2 /Users/boo/WWW/booa/wire/core/Pages.php(154): ProcessWire\PagesLoader->getById(Array) #3 /Users/boo/WWW/booa/wire/core/ProcessWire.php(335): ProcessWire\Pages->init() #4 /Users/boo/WWW/booa/wire/core/ProcessWire.php(295): ProcessWire\ProcessWire->initVar('pages', Object(ProcessWire\Pages)) #5 /Users/boo/WWW/booa/wire/core/ProcessWire.php(118): ProcessWire\ProcessWire->load(Object(ProcessWire\Config)) #6 /Users/boo/WWW/booa/index.php(52): ProcessWire\ProcessWire->__const This error message was shown because: site is in debug mode. ($config->debug = true; => /site/config.php). Error has been logged. Can anyone tell me what this means? greater detail: https://stackoverflow.com/questions/60332198/site-migration-database-recovery-attempt-from-files-on-crashed-computer
  4. hellomoto

    G b rain

    cl own down Why is it that we can't all be jolly Hollywood actors? for satanism
  5. hellomoto

    G b rain

    Virtual "vert chew wool" Processwire "pro cess why're" (& "whirred/were'd press") Software is amazing and it's sophism programmed somehow via binary, sequential boo lean I'm decoding American English "conch iç", by "aw dio". The scary part about that is that that is how people control one another remotely, affectation, and also you cannot aim or simply shut your earshot; only your eyesight. "say dough mass a chism" I know LED GE ledge b rand "jeer as S" thing "teach"ing d EA d, b reed ing ha loo sin ate "in test in", "e at" "E.A. t", "b ladder", "d rink", "stay pull", "nod jewel", con fi d ent/dent, vent, pent
  6. Uploading via the default file field when the size is on the larger side (like a song 374 MB; sorry to be so vague) seemingly very often freezes at 100%, never quite turning over, so I end up having to manually upload the file to the page assets dir. and update page field values in the database. Ring a bell for anybody? Any success in resolving this if so? It's much time lost. I don't work on live sites much, but from what I can recall this is true also in production. Thanks friends
  7. All good sorry I'm burnt out. Please grant me the ability to delete my own posts, for the sake of us all, and I promise to be more careful hereon anyhow. public function hookAfterPageRender($event) { $page = $event->object; if (strpos($page->template->tags, 'crm') === false) return; $event->return = str_replace( '</head>', enqueuess(['crm' => $this->wire('config')->urls->templates.'css/crm.css']).'</head>', $event->return ); }
  8. I was working on this: class PWCRM extends WireData implements Module { public static function getModuleInfo() { return array( 'title' => 'Client Relationship Management', 'version' => .001, 'singular' => true, 'autoload' => true ); } public function init() {} public function ready() { $this->pages->addHookBefore('render', $this, 'accessHook'); $this->pages->addHookAfter('render', $this, 'hookAfterPageRender'); } public function accessHook(HookEvent $event) { $page = $this->wire('page'); if (!strpos($page->template->tags, 'crm')) return; if (!$this->wire('user')->hasRole('crm')) $this->wire('session')->redirect($this->wire('config')->urls->login);//throw new Wire404Exception(); } public function hookAfterPageRender(HookEvent $event) { $page = $event->object; echo $page->template->tags; if (!strpos($page->template->tags, 'crm')) return; echo $this->wire('config')->urls->templates; include_once($this->wire('config')->urls->templates.'functions.inc'); $pagehtml = $event->return; $pagehtml = str_replace( '</head>', '<link id="css_crm" rel="stylesheet" href="'.$this->wire('config')->urls->templates.'css/crm.css"> </head>', $pagehtml ); $event->return = $pagehtml; //$event->replace = true; } } I have tried placing the hooks into the init() function, and more... Neither method is effective. The echoes now output, but no redirection (although I have the access settings for the top-level template for this set to render a 404 for underprivileged users, which it does, overriding this, but nonetheless this should work aside from that. Then I wrote this up quick: <?php namespace ProcessWire; class MaintenanceMode extends WireData implements Module { public static function getModuleInfo() { return array( 'title' => 'Maintenance Mode', 'version' => 1, 'summary' => 'Disables the website frontend for non-superusers.', 'singular' => true, 'autoload' => true, 'permanent' => false ); } public function init() { $this->addHookBefore('Page::render', $this, 'displayDecide'); } public function displayDecide($event) { $page = $event->object; if ($page->template == 'admin' || $this->wire('user')->hasRole('superuser')) return; // replace the method hooked $event->replace = true; $event->return = "Patience please while we undergo some brief maintenance work."; } } which likewise avails nothing. What the hell is my problem here?
  9. Hey how do I get started? What I did was copy all the template files into my existing project and follow the instructions given for the templates setup. Then I deleted the homepage calls for a stylesheet and javascripts that don't exist (in client/dist/) and added vue.js... I'm totally new to vue.js so please excuse my ignorance and if you can give me any tips on how to begin I would deeply appreciate it... I know I'm being awfully vague... How can I pass all the pages to a vue instance to build a navigation, for starters? or should I just do that with PHP?
  10. That did it. I always have the trailing commas is why I didn't try it... oy thank you...
  11. I have $select = 'template=post, when<=now, sort=when, '; $results = $pages->find($select); then output the results' data. It works fine without the sort=when. With it, I get this: Error: Exception: SQLSTATE[42000]: Syntax error or access violation: 1066 Not unique table/alias: '_sort_when' (in /Applications/AMPPS/www/website/wire/core/PageFinder.php line 384) what is this I have this elsewhere $start = date('Y', $pages->get($select.' sort=when')->getUnformatted('when')); and it works fine, returns the earliest year.
  12. I'm trying this out in PW 3. I have in my TextFormatterOembed field: Nothing happens in CKEditor or displayed output on page. Should this not work for PW 3 or am I doing something wrong? EDIT: Never mind, all I had to do was make it a link (& without target blank).
  13. I have a project in progress of brokerage listings mainly. Things I need done are: currency conversion via ServiceCurrencyConversion module, implemented in search PDF generation email notifications & verification frontend admin (separate from default PW built-in) existing codebase audit & optimization I think that'll do. The PDF generation just needs to be a skeletal functionality, once doable I can further customize the template, just can't get it to work in the first place. Some frontend work maybe as well, such as implementing a JS framework (tbd) and some AJAX features. Please PM me with questions/quote. Thank you. UPDATE: I have opted to instead try out Laravel, for now. Wish me luck.
×
×
  • Create New...