Jump to content

helmut2509

Members
  • Posts

    110
  • Joined

  • Last visited

Everything posted by helmut2509

  1. thanks for your quick response, now it works like a charm! however, this green "Add new" button is really confusing...
  2. Hello, I am just working on a pw app and wanted to create a new page. But when I click on the 'Pages -> Add new' tab, I get this error message: "There are currently no templates with defined parent/child relationships needed to show "Add New" shortcuts here. To configure this, edit any template (Setup > Templates) and click on the "Family" tab." I did what this message advised me to do, but to no avail. Any ideas?
  3. Hello, I want to add a new user who only shall have edit-permission. So in the permssion table I clicked on the page-edit and page-view checkbox. But after login as the respective user, only the view-buttons are visible. So what's wrong here?
  4. in the meantime I found out: $sanitizedInput = wire('sanitizer')->text(wire('input')->post->$fld); ...works, but $input = wire('input'); $sanitizer = wire('sanitizer'); ....... $sanitizer->text($input->post->name); ...does not work
  5. I tried this: $sanitizer = wire('sanitizer'); $input = wire('input'); But at using $input I get the error message: Trying to get property of non-object ...and at using $sanitizer I get : ..Call to a member function text() on a non-object
  6. I have a custom script in which I want to validate the contents of input fields. however it seems, that $sanitizer and $input are not available there, I get this error message: "Trying to get property of non-object". So how can I make those variables available in my custom script?
  7. I think I've discovered the cause of the error: in a custom script I commented out this: $config = wire('config'); ...and the the error did not occur any more. But I am sure it worked also fine with this command enabled..... But obviously this command is not necessary if $config is declared as 'global' in the functions?!?
  8. The application is on a root server and I have not made any changes there. Nor did I change anything in the processwire core. Apache log file has exactly the same messages as displayed in the browser. Debug mode in config.php has always been enabled. Processwire version 2.5, downloaded 2 weeks ago.
  9. Some time ago I started a new processwire project. Today I got a strange error message in the browser: Notice: Undefined property: stdClass::$sessionName in .../index.php on line 158 Notice: Undefined property: stdClass::$sessionExpireSeconds in .../index.php on line 162 Notice: Undefined property: stdClass::$paths in .../index.php on line 163 Notice: Trying to get property of non-object in .../index.php on line 163 Catchable fatal error: Argument 1 passed to ProcessWire::__construct() must be an instance of Config, instance of stdClass given, called in /.../index.php on line 211 and defined in .../wire/core/ProcessWire.php on line 54 Unable to complete this request due to an error. -- I have no idea where this comes from, since I only worked on some templates and didn't change anything in the core. The Config class has been correctly instantiated in index.php. any help would be appreciated. thanx, Helmut
  10. Hello, I have a template with two textarea fields. The strange thing is, that in the first textarea I have to set explicitely br tags to get line breaks. But the same thing in the second textarea just displays the br tag instead of executing a line break. What's wrong here?
  11. Thanks for the right answer! The content of the array was just 'localhost'. I replaced it with my live domain name and now it works. However, I do not understand, why only the 'view' function was affected and but not 'edit', 'new' and move....
  12. Hello, after some months absence, I continue working on my ProcessWire project. To my surprise I am confronted with a strange error: the "view page" url in my live app refers to localhost (localhost/contact), whereas all other urls (edit, new, move) refer correctly to my live app. That is the case for all pages. Any explanation for this error? thx, Helmut
  13. There is only PW 2.4 available for download. If my ISP does not upgrade PHP, then I need an older PW version... . according to phpinfo(), PDO is enabled. The problem is PHP 5.2, PW requires 5.3.8
  14. I just transferred my pw app to the live server (shared hosting), modified the config.php and created the database. On calling the site in the browser, I got this message: Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in ......wire/core/WireDatabasePDO.php on line 65 PDO is enabled. So what's wrong here? --- I fixed that bug (at least temporarily) by replacing the constant by '1002'. But then I got the next error: Fatal error: Exception: could not find driver (in ....../wire/core/ProcessWire.php line 143) #0 .../wire/core/ProcessWire.php(51): ProcessWire->load(Object(Config)) #1 ..../index.php(185): ProcessWire->__construct(Object(Config)) #2 {main} in ...../index.php on line 216 PHP version is 5.2.17, PW is 2.4.0 maybe PW requires PHP 5.3.?
  15. hi Matthew, for the beginning, I just want to create a simple contact form which fits in the general layout of the other pages. That means, I want to include header, footer, navigation menu when the user calls that form and also after submitting, along with a confirmation message.
  16. yes, I already tried it. but I do not know, how to integrate this form in the processwire complex. Do I have to create a page for the form? to submit the form, what do I have to enter in the action attribut of the form tag? just putting the php file? then I skip index.php and all system variables are not available......
  17. what is the most convenient way to create a form? As far as I can see, there are three approaches: - forms using API - module Form Template Processor and Mailer - module FormTemplateProcessor As a newbie, it is not easy to find out all the pros and cons of each approach. What do you suggest?
  18. I want to implement some custom functions which are not related to the processwire core. Do I have to store the respective scripts in the module folder? What do I have to do to have access to the session variables in custom scripts?
  19. I have implemented Ryans language switch without problems...it works fine. Look at the generated HTML sourcecode!
  20. Hi Philipp, I followed your instruction step by step, added two languages (german as default and english), the language prefix (en) and created a dummy home page for both languages. But when I viewed them, I saw only the german (default) page, even when viewing the english page. Also there was no language prefix (en) in the url. So what is wrong or missing here? ...ah , I just found out, that I have to add the language prefix (en) manually in the browser address bar. Viewing it from the backend does obviously not work...
  21. thanks for the advice, wanze. I think, in the introduction of multi-language support there should be a kind of overview which approach has to be applied for which purpose.
  22. I want to create a website with one version in german and one in english. There is no point to translate isolated strings, I just want to translate the whole content of each page. I have looked through the documentation, but I am a little bit confused about all the different translation features. so what would be the best approach for my purpose?
  23. I have a page with two subpages and also the corresponding navigation items. As the parent item only serves for structuring, I want a click on the parent menu item directly go to the first subpage. How can I manage this?
  24. thanks Marty, sometimes things are much easier than one thinks...
×
×
  • Create New...