Jump to content


  • Posts

  • Joined

  • Last visited

Contact Methods

  • Website URL
  • Skype

Profile Information

  • Gender
  • Location
    Nanchang, China

Recent Profile Visitors

3,997 profile views

bytesource's Achievements

Sr. Member

Sr. Member (5/6)




Community Answers

  1. As it turned out, the issue was with the database. For every repeater item, I deleted the translated text, saved the page, re-entered the text and saved the page again. After that the text magically appeared on the page. I also removed the repeater at the top and replaced it with a simple image field. In summary, I was able to solve the issue, but I still don't know what caused it in the first place. Cheers, Stefan
  2. @LostKobrakai Please find below the code for all three repeater sections, together with some additional explanations. Section: Hero Image ============================================== Partial home-large-image.php (gets included by template home.php) $img = $page->slides->first()->image; slides: Repeater with a single Image field ('image') Note: Throw the error "Calling a function on an non-object" Section: OUR STRENGTHS / NUESTRAS FORTALEZAS ============================================== Template home.php <?php foreach ($page->portfolio as $p): ?> <?php echo $p->render(); ?> <?php endforeach; ?> Template repeater_services.php (Template of repeater portfolio) <div class="col-md-4 col portfolio-item"> <div class="icon-border"> <i class="glyphicon <?= $page->icon ?>"></i> </div> <!-- <h3 class="upper colored"><?= $page->subject ?></h3> --> <h3 class="upper colored"><a href="<?= $page->page->url ?>" ><?= $page->subject ?></a></h3> <?= $page->summary ?> <?php $linkText = __("Main page"); echo "<a class='go-to-link' href='{$page->page->url}'>{$linkText} <i class='glyphicon glyphicon-new-window'></i></a>"; ?> </div> portfolio: Repeater with the following fields -- TextLanguage ('subject') -- TextareaLanguage ('summary') -- Page ('page') -- Text ('icon') Note: This repeater is supposed to display three repeater items. Today a single one suddenly appeared (the second one of the three). Section: YOUR ADVANTAGES / SUS VENTAJAS ============================================== Template home.php <?php foreach($page->all_advantages as $advantage) { echo $advantage->render(); } ?> Template repeater_competitive_advantages.php (Template of repeater all_advantages) <div class="<?= evenOddTimeline() ?>"> <div class="icon-border"> </div> <h5 class="upper"><?= $page->subject ?></h5> <?= $page->summary ?> </div> all_advantages: Repeater with two fields -- TextLanguage ('subject') -- TextareaLanguage ('summary') Note: This repeater is supposed to display five repeater items, however, none is displayed. Final note: All three repeaters work properly on the English version (default language) of the home page, but not on the Spanish version. Cheers, Stefan
  3. Replacing the repeaters with pagetables would be possible, but that would only be my last choice. I was just hoping that I would be able to find the reason for this weird behavior. Cheers, Stefan
  4. I just updated my site to PHP version 5.6, the newest version available with my hosting provider: http://www.sovonex.com/phpinfo/ Unfortunately, still no repeaters (except for 1 element of 1 repeater) are displayed on the homepage of the Spanish version: http://www.sovonex.com/es/ Is there anything else left to check? Cheers, Stefan
  5. Thanks for your additional ideas. I looked at the forum pages you linked to, but I don't think this is the issue here. The image in question is about 350kb and is displayed just fine on the English homepage (just not on the Spanish one). This same is true for the other repeaters. I flushed ProCache's cache but that did not have any effect on the issue. I am not aware of any other cache. Also, all updates to all other pages did appear without problems. I know how to set the language of a page to 'active', but I haven't heard of a similar setting for repeaters. So I guess I am back at square one for now. Cheers, Stefan
  6. After logging in to the admin and reloading the page, one repeater element (out of 3) under the headline "NUESTRAS FORTALEZAS" is now displayed. But the content of the other repeaters still does not appear. And I have no clue how this single repeater element suddenly appeared on the page. I extended the execution time of the home template with set_time_limit(600); but this did not did the trick, either. Nor did flushing the cache. This is the PHP info file from my hosting provider: http://phpinfo.he-webpack.de/phpinfo.php I uploaded the database via PHPMyAdmin and the content through the upload site of my hosting provider. Cheers, Stefan
  7. Does anybody have any idea what might be causing the issue here? The real problem for me is that I don't know where to look at next. Cheers, Stefan
  8. Hi, I have been dealing with a weird issue, where repeater fields are not displayed under the following specific conditions: Repeaters are displayed on all pages of the default language, but not for any other language Only repeaters on the home page are affected, repeaters on other pages are displayed just fine in all languages. This problem only occurs on the production sever. Everything works find locally. This is the page in question: www.sovonex.com/es/ And this is the English (default language) page for comparison: www.sovonex.com The image at the top is part of a repeater and called like this: <?php $img = $page->slides->first()->image; echo $img->render(array('class' => 'responsive-image')); // render() is a custom hook that deals with responsive images and lazy loading I had to disable the output of the image, otherwise the page would not have loaded at all ("Calling a function on an non-object"). However, what you can see is that the two section below "NUESTRAS FORTALEZAS" and "SUS VENTAJAS" that get their content from repeaters, don't show any content, either. The fact that the issue only occurs on the production server indicates that some permissions are off, but I already checked every file, and to the best of my knowledge everything is fine. EDIT: Even if there was a problem with the file permissions, it should not matter in this case, as the content for repeaters lives in the database and is not stored as an asset in the file system. At least this is how I understand it. The Spanish version of the site will be ready in a few days, but it won't provide a good user experience with the repeaters not showing. I have been struggling with this issue for almost a month now, and also posted it here (1), but I still haven't found any solution. I therefore would be very grateful if anyone could give me a hint or point me into the right direction. Cheers, Stefan (1) www.processwire.com/talk/topic/11300-problem-with-repeater-fields-in-multi-language-pages/
  9. I can finally confirm that the /assets/ folder is writable, but still the repeater contents are not showing on non-default language pages. Honestly, I have no clue what to do next, so any ideas are highly appreciated. Cheers, Stefan
  10. I had another issue with an image description that wouldn't get saved on the production server, and this turned out to be due to insufficient folder rights. I am suspecting the same to be the case with the content of repeaters not showing up on the production server. I therefore would like to ask if there is some folder under /assets/ or somewhere else connected to repeaters that I could check. For the record, I recursively gave 777 permission to the /assets/ folder, but the program my hosting provider uses doesn't seem to work, as it also did not change the permissions of the image mentioned above. Cheers, Stefan
  11. I am having the same problem where repeater fields are not displayed on a page if the active language is not the default language. Even more strange, everything does work on my local installation, but not on the server. There must be some reason for this, but I just cannot find it. Any suggestions as to how to test this issue are highly welcome! Cheers, Stefan
  12. @mr-fan You solved the issue! Thanks to you mentioning other textformatters I took a closer look at the body field, where the Hanna code was to be applied to - only to find out that the HannaCode textformatter was applied after the textile textformatter. Switching both resolved the issue immediately! Best regards,
  13. In case this is important: I am currently running Proccesswire version 2.6.1 and HannaCode version 0.1.9.
  14. Hi, I wrote some simple Hanna code for outputting external links given an identifier and a link text. The actual link URL is stored in a repeater field along with a unique id. Example usage: [[link id=myid text="My Great Link"]] Default attributes: id text target=_blank Code: <?php $link = $pages->get("template=repeater_links, identifier={$id}")->link; echo "<a href='{$link}' target='{$target}'>{$text}</a>"; ?> The problem is that the value of the text attribute ("My Great Link" in the example above) gets cut off at the first whitespace ("My). From the module description I learnt that in order to pass a string containing blank characters, all I needed to do was put quotes around the attribute. However, it seems I am still missing something, and it would be great if someone could point me to the right direction. Cheers, Stefan
  15. I am sorry, but this was a false alarm. Only today did I realize that I was extracting the descriptions from another page than I thought. This other page is a dummy page whose image description fields were indeed all populated with the value "original".
  • Create New...