Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by pwired

  1. Quote

    Unrecognized host HTTP: 'permaculturaorganica.info' - Update your $ config-> httpHosts setting /site/config.php - read more

    But I do nothing. Why did it happen? And what should I do?

    Hi franciccio,

    Did you develop that site locally and now moved it online ?
    First check your config.php file inside the site folder.

    Look for this line: $config->httpHosts = array('....... ');

    It should look like this:

    $config->httpHosts = array('permaculturaorganica.info', 'www.permaculturaorganica.info');


    • Like 3
  2. Since the day of forced p tags ckeditor is still haunting never getting it's settings the way a client really wants it.
    TinyMCE isn't the answer either. A client doesn't need hundreds of settings anyway. Just a simple editor would do fine.


  3. Yes, invisible format characters can mess up your website and drive you nuts because you can't trace the cause in a logical way. Coding with the right editor is crucial. For example the bluefish editor does not reveal invisible format characters but notepad++ does !!

  4. You must be the first one confusing post content with post title.
    Please tell us something about your server environment, php version
    and used processwire modules so we can help you in a better way.

    Did you put processwire debug mode on ?
    Please install Tracy Debugger as it will
    give you valuable debug information.

  5. Here you go, pwired's super language switcher:

    $i = 1;
    foreach($languages as $language) {
    $var[$i] = $page->localUrl($language);
    echo "<li>" . "<a href=" . '"' . $var[3] . '"' . ">" . "Deutsch" . "</a>" . "</li>";
    echo "<li>" . "<a href=" . '"' . $var[2] . '"' . ">" . "English" . "</a>" . "</li>";
    echo "<li>" . "<a href=" . '"' . $var[1] . '"' . ">" . "Español" . "</a>" . "</li>";

    Feel free to modify for your own needs, and beautify <ul>, <li> and <a> with your own custom css

    Here is a recommended read not to fall into unexpected not working language urls:




    • Like 2
  6. Quote

    How I can change it? The certificate is installed on server!

    Hi Franciccio,

    The only part in Processwire you need to do is to uncomment 2 lines in the .htaccess file:

    # -----------------------------------------------------------------------------------------------
      # 9. If you only want to allow HTTPS, uncomment the RewriteCond and RewriteRule lines below.
      # -----------------------------------------------------------------------------------------------
        RewriteCond %{HTTPS} off
        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    The rest is done on your hosting server.

    Many Hosters these days have an easy Let's Encrypt setup in their CPanel.
    Unless your Hosting is Godaddy. I had a hard time not so long ago with Godaddy's support.
    They conduct a very demotivational policy to let you setup Let's Encrypt.


  7. Quote

    I just found this (https://www.phpclasses.org/package/10950-PHP-Compress-files-and-create-archives-in-Zip-format.html), maybe it is of interest for you?


    I downloaded the script and tested the included test.php on my hoster and it is working very well with single files.

    I would like to modify the included test.php script to zip a directory.
    At the bottom of the included test.php it looks like this:

    //$zipFile = new \zipFly\zipFly64(GTEST_DIR.'onfly'.$nr.'.zip');
    $zipFile = new \zipFly\zipFly64();
    $zipFile->setZipFeature(true, false);
    $zipFile->addFile(GTEST_DIR."zipFly/zipFly64.php", "zipFly64.php", \zipFly\zipFly64::METHOD_BZIP2);
    $zipFile->addFile(GTEST_DIR."zipFly/parts/headers.php", "parts/headers.php", \zipFly\zipFly64::METHOD_DEFLATE);
    $zipFile->addFromString("Zip64\nTest\n", 'test.txt');

    As you see it only uses $zipFile->addFile . . . .

    Maybe something like this would do it.


    // let's iterate
    foreach ($files as $name => $file) {
    	$filePath = $file->getRealPath();



  8. Quote

    Maybe I just don't know the use cases.

    general: sqlite and xml databases add greatly to portability
    range: xml database works very well up to the 500 pages website range
    speed: xml database makes a website much faster compared to sql


    • Like 1
  9. There have been, and still are, requests for adding sqlite to PW. Perhaps that would give you something to work on commercially.

    Besides sqlite database, how much would it roughly cost to add xml database to PW ?


    • Like 1
    • Thanks 1
  10. Quote

    I contacted the server team,


    Hi Franciccio,
    So you are doing a Processwire installation on your online host.
    What Processwire version are you installing ?
    Did you check folder permissions, php version, etc. etc.
    Send me a PM and see if I can sort it out for you.


  11. All right guys, another blow to the internet freedom. The united states of europe has voted for Article 13 and made it a fact.

    This is of course bad for innovation because little companies are getting a hard time to compete with the dominant platforms. Also independent content makers such as musicians and vloggers will have only a few dominant platforms left to distribute their work. The dominant platforms will get huge power to control public communication and discussions. Less freedom of expression and public discussions and more conformity to what is acceptable to the status quo. Here is a good example. Remember how Apple kicked Alex Jones from the internet ? Only a few days after that, Youtube, Facebook, Spotify and Twitter followed. We'll wasn't that a coincedence, right ? It only shows that these dominant platforms rule the same status quo and the same what is acceptable, instead of ruling their own interpretations of freedom of expression, choice and opinion. These dominant platforms have turned themselves into decision makers ! Deciding for us the people what we should see and hear and what not. If I don't want to see or hear or do agree or don't agree with Alex Jones then that decision is for us to make and not Apple, Youtube, Facebook, etc. It is not about Alex Jones and the content he brings to the public. It is about big platforms taking away our freedom of choice and our freedom of decision what we can see, hear or agree upon on the internet.

    This is in dutch so google translate it to english:


    • Like 1
    • Sad 2
  12. Quote

    I'm confident in front-end but no php......

    Here is the good news ..... you don't need to be a full blown php coder to start using Processwire. Neither you need to be an expert in javascript.

    Even with the php basics you can already start making websites with Processwire e.g.

    echo "this";
    echo "that";
    echo "<img src='$image->url' alt='$image->description' />";
    access a page
    output your pictures in a gallery
    foreach($page->images as $image) {
    $large = $image->width(500);
    $thumb = $image->size(100, 100);
    echo "<a href='{$large->url}' rel='lightbox-smarts'><img src='{$thumb->url}' alt='{$thumb->description}' /></a>";

    Some basic php syntax stuff

    Did you already go through the Tuto's ?

    Start it up with Processwire

    Processwire Tutorials

    A good read about Processwire and WordPress

    Anyway, you are not going to find any better api out there than the Processwire api.

    Feel free to always come back here and ask questions.



    • Like 1
  • Create New...