Jump to content

imandreas

Members
  • Posts

    27
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

imandreas's Achievements

Jr. Member

Jr. Member (3/6)

7

Reputation

  1. @virtualgadjoyes, I'm still exhausted from debugging and researching, but glad, it works again. Uh, I have no idea about the 50, it's just there again, I didn't changed anything and have no clue on this setting.
  2. Hi @virtualgadjothanks a lot for your suggestions. Yes, PHP version and hoster changed. But it was also not working on my localhost. There was one hint, it throwed sometimes the exception message "This request was aborted because it appears to be forged.". But anyhow, this happens sometimes, and does not really indicate any problem. But now I found the reason! The reason is anyhow the module "Session Handler Database" :( If I remove it, then its working! The really strange things are, that even the Session handler is somehow not valid, you can create a page, but saving the fields of a page, it struggles. Maybe it would have been clearly earlier, that something is on the session, if I wouldnt had disabled the above mentioned exception. But again, it is strange, creating a new page with a malformed session is possible, but not the fields. I don't know, why the Session Handler Database is not working. There are parameters in the module: - Track IP addresses in session data - Track user agent in session data? - Disallow parallel sessions? - Session lock timeouts (seconds) = 50 But I don't know, if any of them affect it. So after de-installing this module, I re-installed it, and now it is working as if nothing happend before.
  3. I'm facing a real strange and big problem. The PW installation is 10 months old, but somehow in the backend all content is displayed, also the edit forms are displayed, but when saving the content, no change is saved. Also when creating a new page, it is possible to create the page, but not to publish. Page is saved as unpublished. Clicking "Publish + Exit" is still keeping on the page/edit. There are no log files created beside "session" logs, even the debug mode is enabled. Installed modules are: - ProFields: Custom - ProFields: Repeater Matrix But also creating a page, that is not using any complex field, instead only one, the behaviour is the same. Maybe there is an issue with the primary field required for all pages/templates: "PageTitleLanguage" It is a real strange and scary, that it is not possible to debug and get hints for the problem. Help is really much appreciated!
  4. Hi There, I'm using the module "Admin Custom Pages" to create new pages accessible in the main navigation of the backend. But how is it possible to show the page only, if the logged in user is part of a special Access Role? I can't see any Permissions in Access / Permissions there is no Setup / Template on which I could set the permissions in the Access Tab Can someone give me a hint please?
  5. Hi there, we are experienced and in love with ProcessWire, worked on various projects with it as website, headless CMS or as API system, but we have also very strong skills on Frontend programming. Right now we are looking out for frontend programming tasks as CSS, LESS, HTML etc. We can support you on your ProcessWire projects, take part of frontend programming so that you can focus on the PHP part. We can improve the frontend quality of your projects to a perfect and exceptionell level. So your websites will be the most dazzling ones and your clients will love you even more! Looking forward - Andreas
  6. solved the issue: Unfortunately did redfine some values in the config for: $config->wiremailsmtp = array( .. "extra_headers" => array("Organization" => "My Org", "X-Header" => "") ) So removing them and keeping only the necessary for SMTP solved the issue
  7. Hi, I'm stucked while using the mail sending, also the plugin WireMailSmtp is installed. $m = wireMail(); $m->to('test@example.com') ->header('bcc', 'asdf@example.com') //->from() ->subject( "HMTL | ") ->bodyHTML("DAs ist ein TÄÖÜ") ->send(); is creating the mail attached. I have no clue, but I also do not want to use phpmailer Any help is appreciated!
  8. We made like this, in the header PHP template we checked, if the user is able to edit the page if ( wire('page')->template == "user-item-template" and (wire('user')->hasRole('frontendeditor') ) ) { echo "<!-- skip jquery -->"; } elseif ( wire('page')->template == "user-content-template" and (wire('user')->hasRole('frontendeditor') ) ) { echo "<!-- skip jquery -->"; } else { ?> <script src="<?php echo $config->urls->templates;?>js/jquery-3.7.0.min.js"></script> <? } Then it was possible to call the alfred: <div class="btn btn_default" <?= alfred($item, "title,text,content") ?>> <i class="fa-solid fa-pen-to-square"></i> Edit </div> It was opening the edit mode in a modal view with some administration header stuff.
  9. Hi, it is almost 6 months, since I worked on this, but I remember, that you have to use the jquery version from PW admin. You should see the magic lines "ALFRED is ready :)" in console, if you include the PW jquery, which is loaded by alfred Maybe that helps
  10. Hi, unfortunately not, I had to re-install it, quite bad, but I had not idea howto solve it.
  11. Hi , this topic is quite tricky, using the API to insert multilangual content, thanks for the above input. This works for me, just if someone needs it. Code is not cleaned: // Array with parent ID, object IDs of external database $externalDataFromJson["pwParentID"] = 12345; $externalDataFromJson["DE"] = '{"12": "Äpfel", "13": "Orangen" }'; $externalDataFromJson["EN"] = '{"13": "Oranges","12": "Apples"}'; createIt($externalDataFromJson); function createIt($data) { $dataDE = json_decode($data["DE"], true); $dataEN = json_decode($data["EN"], true); $DE = \ProcessWire\wire("languages")->get("name=default"); // Get the language object for the default language $EN = \ProcessWire\wire("languages")->get("name=en"); // Get the language object for the second language foreach ($dataDE as $id => $term_DE) { $findItBefore = \ProcessWire\wire("pages")->findOne('template=_vocabulary,external_id=' . $id); if ($findItBefore instanceof NullPage) { echo "<br>Do not Exists: " . $id . ' - ' . $term_DE . ' create: external_id '; $p = new \ProcessWire\Page(); $p->setOutputFormatting(false); $p->parent = \ProcessWire\wire("pages")->get( $data["pwParentID"] ); $p->template = '_vocabulary'; } else { echo "<br>Exists: " . $id . ' ' . $term_DE; //var_dump($findItBefore); $p = $findItBefore; $p->setOutputFormatting(false); //$p->of(false); // outputFormatting must be OFF } if (isset($dataEN[$id])) { $term_EN = $dataEN[$id]; } else { $term_EN = "Eng not found"; } $p->name = \ProcessWire\wire('sanitizer')->pageName($term_DE, true); $p->title->setLanguageValue($DE, $term_DE, true); $p->title->setLanguageValue($EN, $term_EN); $p->external_id = $id; $p->save(); //$p->set("status$de",1); $p->set("status$EN",1); //$p->set("name$de", \ProcessWire\wire('sanitizer')->pageName($term_DE, [true])); $p->set("name$EN", \ProcessWire\wire('sanitizer')->pageName($term_EN, [true])); $p->save(); $url = $p->localUrl("de"); echo "<hr>"; var_dump($url); $url = $p->localUrl("en"); echo "<hr>"; var_dump($url); echo "<hr>"; } } Now in settings/ the second URL (in my case "en") is "active" and translated :)
  12. On my latest PW installation the login was suddenly not possible anymore. I tried to to follow both instructions, but it didn't solve the issue. At the end I had to fully re-install PW. Just as a note: bot codes above are working only once. On every call the password has to be changed.
  13. Hi there, there is a strange issue on ProcessWire 3.0.226, I have this error message: Templates: Template 'language' page class 'Language' is not available Templates: Template 'language' page class 'Language' is not available The reason, why I want to install Language, is that my PW installation is showing all the time this Info message: ModulesInstaller: Unable to install module (LanguageSupport): There is already a template installed called 'language' +1 I don't know how this happened, but I can't install any Language modules to fix this issue. If I try to install Modules / Core / Language / LanguageSupport, its showing Errors: Error installing module - LanguageSupport ProcessModule: Failed module dependency: ProcessLanguage requires LanguageSupport ProcessModule: Failed module dependency: ProcessLanguageTranslator requires LanguageSupport I have no clue right now, how to solve.
  14. Hi @JoseFrasherunfortunately not. As PW is so perfect and fast on all frontend issues, it is a bit tricky on the user generated content. So I still use the API as above to create the new content. Then I list the newly created page in the template called "my-pages": foreach( wire("pages")->find("created_users_id=$user->id, template=user-generated-content-template") as $item){ ... <div class="btn btn_default" <?= alfred($item, "title,body,.....") ?>> <i class="fa-solid fa-pen-to-square"></i> Edit </div> } And one problem is still remaining: Users can edit other templates of "user-generated-content-template" created by other users as well, if they know how to. Here I should add somewhere a hook on this template for edit, if the current user is equal to the user, who created that page.
  15. thanks @OLSA it was helpful
×
×
  • Create New...