Jump to content

mlfct

Members
  • Posts

    7
  • Joined

  • Last visited

mlfct's Achievements

Newbie

Newbie (2/6)

8

Reputation

  1. Hey @teppo, i got a quick question - maybe it is even trivial: I just upgraded from SE 0.26 to 0.30.1 and i am running into some issues with the JSON output. Up until now it was working flawlessly, when i was querying my search endpoint via AJAX. The output was just dead simple: $searchEngine = \ProcessWire\modules()->get('SearchEngine'); header('Content-Type: application/json'); return $searchEngine->renderResultsJSON(); But somehow this endpoint returns no results on 0.30.1, when using the same query as on 0.26: { "query": "xyz" } I also did a quick debug query via the SE admin panel, which returns all the expected results. Am i overlooking some changes?
  2. Hey everyone, i might have a weird issue with my multisite setup. Not sure though, if it is a user error from my side, a server configuration or a pw thing. I am using Soma's Multisite module to redirect different domains to different "sub"page-trees. On my dev-server, i just manually setup two vhosts on apache to test the configuration and it worked flawlessly. Each domain routes correctly to the corresponding entry in the pagetree. My client on the other hand has to use Plesk to configure his webserver. So I setup two domains (domain1.com | domain2.com) there and pointed the domain2.com DocRoot to domain1.com's DocRoot (with the actual pw installation). $config->httpHosts = [ 'domain1.com', 'domain2.com', 'domain3.com' ]; $config->MultisiteDomains = [ 'domain1.com' => [ 'root' => 'www.domain1.com', 'http404' => 27, ], 'domain2.com' => [ 'root' => 'www.domain2.ch', 'http404' => 27, ], 'domain3.com' => [ 'root' => 'www.domain3.ch', 'http404' => 27, ], ]; $config->httpHosts and $config->MultisiteDomains are properly set, but somehow when i am trying to load either of the two(or more) domains, it will always route to the first entry of the $config->httpHosts array. Maybe someone could give me an idea or has worked with a similar setup, because i am feeling kind of blocked right now. Thanks in advance! -- EDIT Embarrassingly enough, i just found the issue: The Plesk default domain setting was redirecting to the www.* subdomain and this setting interfered with the actual routing. Sorry for the pointless thread-spam.
  3. @teppo was already following up on the github issue. works perfectly now - thanks for pinpointing the issue and chiming in with mauricius!
  4. I've been using 0.14.0 from the your repo master branch and mauricius' blade renderer implementation.
  5. Hey @teppo, first off thank you for creating this module - really love the approach. I recently took over a processwire project, which pretty much consisted of php/html spaghetti-code. Being an processwire greenhorn (having worked with Typo3 & WP up until now), this drove me crazy - but your module definitely helped me to bring some structure into that chaos. ^^ Anyway, long story short: I was wondering, if i can also use blade or twig templates for the view part of a component? It works flawlessly for all my template & partial views, but i am somehow having issues with components. Always running into something like this, although an default.blade.php view exists for that component: Method Wireframe\Component\SocialWidget::__toString() must not throw an exception, caught InvalidArgumentException: View [SocialWidget.default] not found. I might also just be missing something, as i only have an intermediate knowledge of php. Thanks in advance!
×
×
  • Create New...