Jump to content

wishbone

Members
  • Posts

    183
  • Joined

  • Last visited

Posts posted by wishbone

  1. How come not? Works with me on every browser I tried... 

    ok, yes, now works, sorry, don't know why... I was confused because I don't have a file name.

    Could you pls explain me the concept how the page is displayed if not a file?

  2. I still can't believe that I can "write php" code, thanks to ProcessWire!

    full ack...

    never thought I could ever learn to code...

    With ModX, I had to hire programmers to write snippets I couldn't do anything new.

    With PW, I learnt some php, and piece by piece, with the help of this never impatient community, I can bring my ideas into life - by myself!!!

    • Like 5
  3. sry $connection didn't help. Server error logs I don't have access to.

    But don't ask me why I had the idea to test every piece of the script...

    so I found out part of it works...

    only if no email has been entered, an "Internal server error" is thrown!

    If email is specified - everything works fine!

    It doesn't work in the templates directory - is that right? I put it in root.

    Thank you for your help!!

  4. thx!

    It's an existing script, and it runs with another database than the PW install. It has to be integrated into the new PW site.

    I don't know nothing about sql, so, sorry, I can't adapt it to PW's own $db object...

    This is when Designers, starting to dream of processwire, get to their limitations...

    it's these queries:

    $connect = mysql_connect("rdbms.strato.de","user","password") or die
    ("Keine Verbindung moeglich");
    mysql_select_db("DBxxx") or die
    ("Keine Verbindung moeglich");
    
    $anfragedatum=date("d-m-Y");
    
    $sql1 = "INSERT INTO fuhrung (anfragedatum,vorname,name,[...]) VALUES ('$anfragedatum','$vorname','$name', [...])";
    mysql_query($sql1);
    
    $sql2 = "Select * from login";
    $ergebnis = mysql_query($sql2) OR die("Anfrage fehlgeschlagen: " . mysql_error());
        while ($row =mysql_fetch_array($ergebnis)) {
        $empfaenger2=$row['benutzermail'];
        mail($empfaenger2, $betreff, $text,
    "From: [...]");
    

    It is not the same database as the PW install...


     

  5. A form across 3 pages runs some mysql script in the last page (send email etc). The mysql code is included in the template (as are the forms as well).

    Everything is fine, only the last page gives "Internal Server error".

    When packed in a php file (without template), the mysql is executed fine.

    Is it not possible to pack mysql code into a template or where is the mistake?

  6. got it! after sleeping, solutions often appear...

    everybody was talking about local installs with that error, so I controlled the DBHost.

    had the config.php overwritten with the local copy, when I put on the debug mode...

    Where can I mark the thread as solved?

    • Like 1
  7. My site was running fine, until I tried to get some mysql queries running inside a template (via include).

    I got internal server error, and also a DB connect 2002 one.

    I put on debug mode which gave me errors already on normal files (without mysql query).

    After that, site is down, I can#t even log in into the backend.

    I only get: "Unable to complete this request due to an error. Error has been logged."

    The error log says:

    "Error:     Exception: DB connect error 2002 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (in /mnt/web6/d3/52/51421252/htdocs/wire/core/ProcessWire.php line 96)"

    no clue where to search...

  8. There's a slight problem in your code; it would seem that you're using (probably undefined) variable called $redirect instead of $page->redirect (redirect property of $page object, ie. the value of redirect field.) If your intention was to use value from field called "redirect", try this instead:

    <?php
    $session->redirect($page->redirect);

    with the above approach of OllieMackJames, this is the solution I needed to link to an external page inside MarkupSimpleNavigation menu.

    Thx!

  9. Found this thread just right now.

    Seems always the same thing.

    If processwire wants to get people developping with wordpress or joomla or even drupal and such, there must be a better start.

    As for myself, I'm a non coder as many, and I don't know many designers who are as "stubborn" as me to struggle through the wide spread documents.

    I came from modX, because it was the only CMS where I could start from static html pages, replacing piece by piece the dynamic elements.

    Then came modX revo and everybody said it's too heavy and clumpsy in the backend.

    Then came those people who said revo made them move to processwire, people who were engaged a lot in modX.

    So I tried it.  It's even more flexible than modX - but much I can't say yet ;-) But every time I touch it I'm fascinated how smoothy the handling is, how simple solitions once I checked them...

    Every simple question has been answered by the incredible community! I don't know why they do that, it's almost like privat lessons ;-) guiding through the beginner's cliffs...

    I missed a beginner's guide where to start. Still now I'm always searching via google for the documents!

    There's got to be something to be done on that to attract more people coming from more prefabricated CMSes.

×
×
  • Create New...