Jump to content

buothz

Members
  • Posts

    50
  • Joined

  • Last visited

Everything posted by buothz

  1. errors.txt Error Exception: Method JqueryCore::addComponents does not exist or is not callable in this context (in /home/rvocsizt/public_html/wire/core/Wire.php line 232) #0 /home/rvocsizt/public_html/wire/modules/Jquery/JqueryCore/JqueryCore.module(39): Wire->__call('addComponents', Array) #1 /home/rvocsizt/public_html/wire/modules/Jquery/JqueryCore/JqueryCore.module(39): JqueryCore->addComponents(Array) #2 /home/rvocsizt/public_html/wire/core/Modules.php(327): JqueryCore->__construct() #3 /home/rvocsizt/public_html/wire/core/admin.php(15): Modules->get('JqueryCore') #4 /home/rvocsizt/public_html/site/templates-admin/controller.php(13): require('/home/rvocsizt/...') #5 /home/rvocsizt/public_html/site/templates/admin.php(13): require('/home/rvocsizt/...') #6 /home/rvocsizt/public_html/wire/core/TemplateFile.php(92): require('/home/rvocsizt/...') #7 [internal function]: TemplateFile->___render() #8 /home/rvocsizt/public_html/wire/core/Wire.php(271): call_user_func_array(Array, Array) #9 /home/rvocsizt/public_html/wire/core/Wi 2016-04-30 08:39:04 Error Exception: Method JqueryCore::addComponents does not exist or is not callable in this context (in /home/rvocsizt/public_html/wire/core/Wire.php line 232) #0 /home/rvocsizt/public_html/wire/modules/Jquery/JqueryCore/JqueryCore.module(39): Wire->__call('addComponents', Array) #1 /home/rvocsizt/public_html/wire/modules/Jquery/JqueryCore/JqueryCore.module(39): JqueryCore->addComponents(Array) #2 /home/rvocsizt/public_html/wire/core/Modules.php(327): JqueryCore->__construct() #3 /home/rvocsizt/public_html/wire/core/admin.php(15): Modules->get('JqueryCore') #4 /home/rvocsizt/public_html/site/templates-admin/controller.php(13): require('/home/rvocsizt/...') #5 /home/rvocsizt/public_html/site/templates/admin.php(13): require('/home/rvocsizt/...') #6 /home/rvocsizt/public_html/wire/core/TemplateFile.php(92): require('/home/rvocsizt/...') #7 [internal function]: TemplateFile->___render() #8 /home/rvocsizt/public_html/wire/core/Wire.php(271): call_user_func_array(Array, Array) #9 /home/rvocsizt/public_html/wire/core/Wi thanks
  2. Hi, thank u for your help. I've opened Chrome Network tab, I don't see any PHP error (debug true) I see on network tab removeClass@JqueryCore.js?v=162:16removeClass@JqueryUI.js?v=180:587(anonymous function)@main.js?v=2:31handle@JqueryCore.js?v=162:17F@JqueryCore.js?v=162:17handle@JqueryCore.js?v=162:17k@JqueryCore.js?v=162:16 and Chrome console VM770:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0parseJSON @ JqueryCore.js?v=162:16(anonymous function) @ InputfieldFile.js:171 JqueryCore.js?v=162:18 'webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead. What can I do? And the right write permission on what folder? Thanks.
  3. when I upload images on admin area bar remain to 100% error: on chrome console VM797:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0parseJSON @ JqueryCore.js?v=162:16(anonymous function) @ InputfieldFile.js:171 With debug true: no errors on php I have not updated anything and even touched or database files, how can i resolve? Thanks
  4. I'm going to do the porting to a new server for a site with processwire. I wanted to know if I need to update the "userAuthSalt" in config.php and, if necessary, obtaining a new userAuthSalt. Thank u.
  5. In the demo site http://processwire.com/skyscrapers/ let's say for example that every skyscraper has its space, for example SunTrust Plaza want to manage page http://processwire.com/skyscrapers/cities/atlanta/suntrust-plaza/. My question is: Is it possible that the various companies of skyscrapers can manage its own page with admin and password, clearly giving the fields pre-set? If you can do, how can I structure the system? Using $ user and rules? Thanks
  6. buothz

    checkbox

    for example, I create a father field, when I select the father field the system gives me the opportunity to choose their children, and so on... In the admin panel sitename.com/processwire thanks
  7. In the admin area it's possible create a checklist tree like this? thank u
  8. If i've understand well what do u tell -> ids are of the template name for example 29 is basic-page.php template etc... I've the same problem for the fields, I can't see field's name but only id... how can I resolve this problem?
  9. thank u to all! Problem resolved! Another little question: why i can't see name of field but only id???
  10. $dati_auto = array("auto_marca", "auto_tipo", "auto_prezzo"); $maxi = count($dati_auto); echo 'max n vale' . $maxn; for ($i = 0; $i < $maxi; $i++) { //echo '<p>dati auto vale ' . $dati_auto[$i].'</p>'; $field = $fields->get('$dati_auto[$i]'); $label = $field->get("label$language"); echo "<li><strong>$label:</strong> $page->$dati_auto[$i]</li>"; } why this code don't work? There's a method to take an array with my vars and put in a cycle? Thank u
  11. I've this output <li class='Inputfield InputfieldSelect Inputfield_auto_marca ui-widget InputfieldStateRequired' id='wrap_Inputfield_auto_marca'> <label class='ui-widget-header' for='Inputfield_auto_marca'>Marca</label> <div class='ui-widget-content'> <p class='description'>Marca</p> <select id="Inputfield_auto_marca" class="required" name="auto_marca"> <option selected='selected' value=''></option> <option value='fiat'></option> <option value='bmw'></option> </select> </div> </li> why <option value='fiat'></option> and not <option value='fiat'>fiat</option>... I've not change files of your module... where's the problem? thanks EDIT -> corrected file InputfieldSelect.module your version $out .= "\n\t<option$selected $attrs value='" . htmlspecialchars($value, ENT_QUOTES, "UTF-8") . "'>" . $this->entityEncode($label) . "</option>"; my version $out .= "\n\t<option$selected $attrs value='" . htmlspecialchars($value, ENT_QUOTES, "UTF-8") . "'>" . htmlspecialchars($value, ENT_QUOTES, "UTF-8") . "</option>"; why this error? Can be a server problem with "$this->entityEncode($label)"?
  12. Is it possible to replicate a field in a template? Let me give an example. 1) I create a field named "article" (textarea multi language) 2) I insert the field "article" in a new template "page news" 3) I create a new page with the template "page news" 4) I enter my body, title, and ... 5) I want to put 3 fields "article", another page in 5 fields "articles", in another 20 fields "article" and so on ... using the same template. there is a method? FIND NOW -> http://processwire.com/api/fieldtypes/repeaters/ Thank u...
  13. I need to create an admin area where the admin processwire can enter data (create several new account username and password) in the mysql database. Once he has created access data, it can associate the access to different pages that are created by the admin panel for example admin create user: creative pass: madolo user log as user: creative pass: madolo and can display www.sitename.com/page1 that other users can't show... admin create user: pomodoro pass: rosso user log as user: pomodoro pass: rosso and can display www.sitename.com/page77 that other users can't show... and so on ... As you suggested me to do?
  14. perfect, resolved with $value = number_format($page->float_value, 2); u're a genius!
  15. General question about processwire, when I create a float field and insert data system truncates the decimal point, and this is not obvious if I type the numbers 2.090000 ... But if I want to: - 2 exact decimal (eg 2.40 / 69.70 -> now instead of 2.4 / 69.7) - And always keep at least 2 decimal places (eg 2,00 / 69,00 -> instead I out 2/69) where can I do? I can choose how many decimal places to round off the menu (in fact, I put 2), but I would like to, just for the field, keep the zeros and rounding to 2 decimal places ... Thanks in advance.
  16. thank u a lot to all people... the last problem: I've just made this function on my mind but when I pass to ?language=en and I click another link in the menu return "currentpage?language=it" and system lost the change of the language :'(
  17. Sry my eng is bad "The perfect solution it would be change index.php to http://MYURL/?language=it, is possibile? I've tried with .htacces and my server conf but I do not know it..." Now when visit my site guest go to http://MYURL/index.php, it is possible make default url http://MYURL/?language=it? Thanks...
  18. thank u for all the help, i've tried this version on the first row of head.inc but nothing to do... if i set in "processwire/access/users/edit/?id=..." not default language system don't go. If i return with my old code (move to the start or head.inc) and I click my language flag icon if ($session->language == 'it') { echo '<li><a href="./?language=en"><img src="/img/gb.png" alt="English Language"></a></li>'; ... that do if($input->get->language) { // user clicked on a link to set the language $name = $sanitizer->pageName($input->get->language); $language = $languages->get($name); if($language) $session->language = $language->name; } system go ALL ok!!! When i chage user guest and admin I see: ... Change: unset:tariffe Change: unset:title Change: unset:trasmissione Change: language Saved Page: /processwire/access/users/nissim/ gived to me when I change access -> user -> admin -> language? The perfect solution it would be change index.php to http://MYURL/?language=it, is possibile? I've tried with .htacces and my server conf but I do not know it...
  19. thank u but i've tried all methods and nothing to do... If i change user language admin or guest (1010 = it | 1080 = eng/default) to 1010 system make this problem: - part of the text it's ok - part of the text remain default while I press this button if ($session->language == 'it') { //italiano echo '<li><a href="./?language=en"><img src="/img/gb.png" alt="English Language"></a></li>'; } else { echo '<li><a href="./?language=it"><img src="/img/it.png" alt="Italian Language"></a></li>'; } when I click the flag (made by me) it's all ok... first echo "User Language: ".$user->language; echo "Session Language: ".$session->language; echo "Language: ".$language; echo "Language name: ".$language->name; are ALL blank (null i think...) exept $user->language, 1008 if i set default and 1010 if i set it... If i don't change admin/guest lang (1008 -> default) are all blank but system go... problem it that the only info that system has is "$user->language = 1010" and nothing other... session remain = null! language = null! If i leave $user->language = 1008 all is ok, if $user->language = 1008 problem is while I press my lang flag and start if($input->get->language) { $name = $sanitizer->pageName($input->get->language); $language = $languages->get($name); if($language) $session->language = $language->name; } I'm becoming crazy!!! ALL PAGE LANG CODE <?php echo "User Language: ".$user->language; echo "Session Language: ".$session->language; echo "Language: ".$language; echo "Language name: ".$language->name; /*if ( $user->language == '1008') { //$language = 'it'; $session->language = 'it'; }*/ /*if ( $user->language == '1010') { //$language = 'it'; $session->language = 'it'; }*/ /*if($session->language) { echo " Language is: $session->language "; }*/ //echo $session->language; /** ?> <ul id='topnav'><?php // LANGUAGES //$language = '1008'; //IT //$language = '1008'; //EN //$language = ''; //$user->language = $languages->get('it'); //soluzione proposta if($input->get->language) { // user clicked on a link to set the language $name = $sanitizer->pageName($input->get->language); //echo 'name: '.$name; $language = $languages->get($name); //echo 'lang: '.$language; if($language) $session->language = $language->name; /*echo 'lang name: '.$language->name; echo "User Language: ".$user->language; echo "CLICK!!!"; echo "Session Language: ".$session->language; echo "Language: ".$language; echo "Language name: ".$language->name;*/ //$user->language = $languages->get($session->language); } if($session->language) { // language is defined in user's session $user->language = $languages->get($session->language); $language = $languages->get($session->language); /*echo "SESSION!!!"; echo "User Language: ".$user->language; echo "Session Language: ".$session->language; echo "Language: ".$language; echo "Language name: ".$language->name;*/ //if($session) $language->name = $session->language; //$user->language = $languages->get($session->language); } //LANGUAGES END /*if ($session->language == 'it') { $language = 'it'; echo "if session-lang".$language; } else { $language = ''; echo "if session-lang".$language; }*/ ... </ul>...
  20. does not solve the problem, I just change some of the text while the controlled with if ($session->language == 'it') {... remains in the default language (eng). // LANGUAGES //$language = ''; $user->language = $languages->get('it'); //OK! Only a part become not default lang... if($input->get->language) { // user clicked on a link to set the language $name = $sanitizer->pageName($input->get->language); $language = $languages->get($name); if($language) $session->language = $language->name; //$user->language = $languages->get($session->language); } if($session->language) { // language is defined in user's session $user->language = $languages->get($session->language); $language = $languages->get($session->language); //if($session) $language->name = $session->language; //$user->language = $languages->get($session->language); } //LANGUAGES END where's the problem? thank u in advice...
  21. I've already problem with multilanguages... I wanna start with a NON default lang... it is possibile define $session->language == 'myvar' at start?ù When I click to eng language become default? $language = ''; if($input->get->language) { // user clicked on a link to set the language $name = $sanitizer->pageName($input->get->language); $language = $languages->get($name); if($language) $session->language = $language->name; } if($session->language) { // language is defined in user's session $user->language = $languages->get($session->language); $language = $languages->get($session->language); ... If I change processwire/access/users/edit/ default to mylang, language system don't work... thank u...
  22. resolved with debug off and pdfcomposer uninstall... thank u!
  23. Hi, i've changes server, linux to linux, but i have a problem... - i have reload all files from old server - i have reload all db from old server - i have configurated only file ../site/config.php to new database user, pass... site is ok but when i go to mysite.com/processwire give to me this errore (debug: true): Strict Standards: Declaration of Pdfcomposer::___execute() should be compatible with that of Process::___execute() in /htdocs/public/www/site/modules/Pdfcomposer.module on line 3 Warning: Cannot modify header information - headers already sent by (output started at /htdocs/public/www/site/modules/Pdfcomposer.module:3) in /htdocs/public/www/wire/core/Session.php on line 272 Warning: Cannot modify header information - headers already sent by (output started at /htdocs/public/www/site/modules/Pdfcomposer.module:3) in /htdocs/public/www/wire/core/Session.php on line 273 Warning: Cannot modify header information - headers already sent by (output started at /htdocs/public/www/site/modules/Pdfcomposer.module:3) in /htdocs/public/www/wire/core/Session.php on line 274 but i don't see the site admin panel, a blank page with only the error.. where is the error?
  24. RESOLVED: DISK QUOTA EXCETED... My low cost server...
×
×
  • Create New...