helmut2509

Members
  • Content count

    101
  • Joined

  • Last visited

Community Reputation

9 Neutral

About helmut2509

  • Rank
    Sr. Member

Recent Profile Visitors

1,337 profile views
  1. helmut2509

    $view is an instance of \ProcessWire\TemplateFile
  2. Hello, I just found out that, when passing a (numeric) zero with "$view->myVar=0" to a template then the corresponding template variable $this->myVar is empty, it has no value. This even occurs when I convert the value to a string: (string) 0 Strings and numeric values other than zero are handled correctly. I think this is a bug which should be fixed?! regards, Helmut
  3. helmut2509

    thanks for the tip. In my google search result the above link did not appear ;-((
  4. In my PW app I have now a php script which caters to the upload of files. It does not directly belong to the UI and therefore I did not store it in the templates folder, but in a custom folder. My question is: how do I get access from this script to the Pw API? Can I leave it in the custom folder?
  5. helmut2509

    you are right, I have made a stupid error. thanx, guys!
  6. helmut2509

    In the function I wrote wire('session')->set('number', '12345'); and outside the function I tried : echo $session->number ...but this variable was empty....
  7. helmut2509

    Hello, I want to use the $session variable in functions, inside a template. According to the API this variable is available only in templates. But all values of the $session variable get lost, even when I use 'global $session'. is there any workaround for this problem?
  8. helmut2509

    I found it: there was still another dll-entry in the php.ini I had to comment out. Now it works like a charm. But I still do not understand, why and where these components have been referenced and why this error occurred simoultaneously with a json syntax error...and only sporadically. very strange!
  9. helmut2509

    This is my code: if(!isset($session->sprachen)){ $action = 'fetchdata/sprachen'; $resultJson = sendData($webserviceUrl,$action,$params); echo "sprachen vom webservice:".$resultJson.'<p>';//correct json string. after the string comes //the error message "Unable to load dynamic library '/usr/lib/php/20151012/php_openssl.dll'" $session->sprachen = json_decode($resultJson,true); echo "json-error-code-sprachen=".json_last_error().'<p>';//here json error 4 occurs (syntax error?!) echo "sprachen22:<pre>";print_r($session->sprachen);echo " count-sprachen=".count($session->sprachen)."</pre>";//$session->sprachen is empty! }
  10. helmut2509

    I guess the error is somehow related to the $session-object (of PW). When I logout and then login again, all works fine (in the majority of cases). But then at subsequent calls of one page the error occurs again.
  11. helmut2509

    that's already done..... But I wonder from where this extension is called??? My php code is in no way related to soap!
  12. helmut2509

    It's not a third party webservice, it' my own ;-)
  13. helmut2509

    Hello, In my pw app I am using a webservice to fetch data for a selectbox. Sporadically (not always!) I cannot json_decode the json string I get from the webservice, I get json error code 4 (syntax error). When this occurs I also get the following error message: "Severity: Core Warning Message: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_soap.dll' - /usr/lib/php/20151012/php_soap.dll: cannot open shared object file: No such file or directory". ....though I do NOT use a soap function! the strange thing is that I fetch always the same data and sometimes it works, sometimes it does not work. Any suggestions?
  14. helmut2509

    that's the solution. thanx abdus!
  15. helmut2509

    Unfortunately this does not work. In both cases I get the error: " Uncaught Error: Call to undefined function ProcessWire\\wire() in...."