Jump to content

Sylvio

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by Sylvio

  1. Ryan, No, version 5.3.27 FastCGI, actually you have 3 options now, but it is set by default on the FastCGI. I had to switch to 5.3.27 CGI (stable) and then it worked. Sylvio
  2. Found it, could be useful for others people: Apparently Media Temple Grid has PHP by default as FastCGI and this doesn't go well with PW. Luckily you can still change it to CGI, see attach Regards Sylvio
  3. Hi, I just did a clean install of PW 2.3 on a Media Temple Grid and everything went smooth. The site is rendered nicely, just NOT the admin. It seems that de CSS is not loaded. But sometimes it does but mostly It doesn't. See screenschot in attach. Weird though, I installed many PW sites on Media Temple before and never had issues. This is my first 2.3 though. Note: I am still using the preview url: http://declippeleadvocaten.com.s173583.gridserver.com/ but I if I test another PW website using it's preview url It works fine so this cannot be the issue Regards Sylvio
  4. The error output shows with lowercase V but the upload module file has the uppercase V. I have no means of unzipping files at this hosting company (shitty hosting of one of my clients) I transferred the LanguageSupport files separately BUT that didn't do the trick either Regards
  5. Hi, I just moved my site to a production server and I never had issues before putting a PW site online and now I have been at this issue for hours. Tried everything on the forum. Error is this <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title><br /> <b>Fatal error</b>: Call to undefined method FieldtypeText::formatvalue() in <b>/var/www/vhosts/declippeleadvocaten.com/httpdocs/wire/modules/LanguageSupport/FieldtypeTextLanguage.module</b> on line <b>71</b><br /> <p class='error WireFatalError'><em>This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged. Administrator has been notified. </em></p> Regards Sylvio
  6. It's solved, I had set the php flags post_max_size and max_file_upload thru the htaccess and the hosting company didn't like that. I had to change these vars thru their panel Thanks Sylvio
  7. Url is: http://voetvolkbe.webhosting.be/ Thanks Sylvio
  8. Hi, I just moved a clients PW 2.1 instance which was working perfectly fine on Mediatemple to a new hosting provider, a simple shared linux hosting. I moved the DB, copied files etc etc also htaccess. The problem is if I copy over the htaccess it drops me 500 internal server error, leave it off (which of course we don't want:-)) and the site pops up. I tried everything suggested on the forum but nothing seems to work for me. Any help, Ideas ? Regards Sylvio
  9. Sylvio

    Voetvolk

    Sorry Ryan, I just saw your post. When I started and I believe finished the site, PW 2.2 wasn't available yet for production. I finished it a while ago, just posted it now But my next project will be PW 2.2 - I needed the multi language support
  10. Sylvio

    Voetvolk

    My latest work, done in PW 2.1.0 www.voetvolk.be Lisbeth Gruwez|Voetvolk is a dance/performance group founded around dancer/choreographer Lisbeth Gruwez and composer/musician Maarten Van Cauwenberghe. Since its foundation in 2007, it has developed its activities as an international contemporary dance and performance company. Lisbeth Gruwez|Voetvolk functions as an autonomous and independent structure, relying on a network of co-producers and partners to realize its projects. Lisbeth Gruwez and Maarten Van Cauwenberghe are ‘Artists-in-Residence’ in the Troubleyn /Laboratorium of Jan Fabre. Sylvio
  11. adamkiss, Idd, I had two pages of where one didn't had a press_snippet file uploaded Thanks man S.
  12. Hello, I have this simple code that throws errors I put in an echo (to test) of the url call on the file (line 5), it throws: /voetvolk.be/site/assets/files/1016/grande_guide_to_lead_nurturing.pdf "Notice: Trying to get property of non-object in ......." Weird thing, the path is outputed as you can see, but I'm getting these errors The $snippet->press_date and $snippet->title are showing up, no problem here The file field press_snippet is a single file field. <?php $press = $pages->get("/press/")->find("press_project=$page->id"); echo "<h3>Press</h3>"; echo "<table>"; foreach($press as $snippet) { echo $snippet->press_snippet->url; ?> <tr> <td><a href='<?=$snippet->press_snippet->url?>' target='_blank'><img src='<?php echo $config->urls->templates?>img/<?=$snippet->press_snippet->ext?>_icon.png' alt='<?=$snippet->press_snippet->get('description|name')?>' title='<?=$snippet->press_snippet->get('description|name')?>' width='24' height='31'/></a></td> <td><?=$snippet->press_date?><br/><?=$snippet->title?></td> </tr> <?php } echo "</table>"; ?> It's probably someting stupid, but I'm not seeing it Thanks S.
  13. Sylvio

    Happy birthday Ryan!

    Happy birthday PW master! ;D
  14. Hi Ryan, Not that I can see, the only thing i did, was adding 2 templates, it has to be in one of these templates then I guess. - one template is a private login template: <?php if($input->post->login_submit) { // process submitted login form $name = $sanitizer->username($input->post->lblUsername); $pass = $input->post->lblPassword; if($session->login($name, $pass)) $session->redirect("./"); else echo '<p class="ui-state-error-text">Login failed, please try again.</p>'; } if($user->isLoggedin() && $user->hasRole("distributors")) { $categories = $pages->get("/private/")->children(); if (count($categories)>0) { ?> <ul class="tabs"> <?php foreach($categories as $category) { echo "<li><a href='#{$category->id}'>{$category->title}</a></li>"; } ?> <li><a href='#upload32654981'>Upload new file</a></li> </ul> <div class="tab_container"> <?php foreach($categories as $category) { $product_arr = array(); echo "<div id='{$category->id}' class='tab_content'>"; $children = $category->children(); if (count($children)>0) { foreach($children as $products) { foreach($products->related_products as $product) { $product_arr[] = $product->title; } } ?> <?php $product_arr = array_unique($product_arr); foreach ($product_arr as $value) { echo "<h2 class='acc_trigger'><a href='#'>&#187; $value</a></h2>"; ?> <div class="acc_container"> <div class="block"> <?php foreach($children as $child) { $productchild_arr = array(); foreach($child->related_products as $productchild) { $productchild_arr[] = $productchild->title; } if (in_array($value, $productchild_arr)) { if ($child->template == 'client_images') { foreach($child->client_images as $image) { $thumb = $image->height(200); echo "<a href='{$image->url}' target='_blank'><img src='{$thumb->url}' alt='{$thumb->description}' title='{$thumb->description}' width='{$thumb->width()}' height='{$thumb->height()}' /></a>"; } } else { ?> <table> <?php foreach($child->client_documents as $doc) { ?> <tr> <td><a href='<?=$doc->url?>' target='_blank'><img src='<?php echo $config->urls->templates?>img/<?=$doc->ext?>_icon.png' alt='<?=$doc->get('description|name')?>' title='<?=$doc->get('description|name')?>' width='50' height='50'/></a></td> <td><?=$doc->name?><br/><?=$doc->description?></td> <td><?=strtoupper($doc->filesizeStr)?></td> </tr> <?php } ?> </table> <?php } } } ?> </div> </div> <?php } } echo "</div>"; } ?> <div id='upload32654981' class='tab_content'> <?php $fileextensions = $page->fields->get("client_upload")->extensions; if($input->post->upload_submit) { $uploadtab = TRUE; $page->setOutputFormatting(false); // instantiate the class and give it the name of the HTML field $u = new WireUpload('lblUpload'); $u->setMaxFiles(1); $u->setOverwrite(false); $u->setDestinationPath($page->client_upload->path); $valid_ext = explode(" ", $fileextensions); $u->setValidExtensions($valid_ext); // execute() returns an array, so we'll foreach() it even though only 1 file $exec_arr = $u->execute(); if(empty($exec_arr) || !count($exec_arr)) { if(empty($notices) || !count($notices)) { echo "<p class='ui-state-error-text'>Error: Choose a file to upload!</p>"; } else { foreach($notices as $notice) { if($notice instanceof NoticeError) { echo "<p class='ui-state-error-text'>Error: {$notice->text}</p>"; } } } } else { foreach($exec_arr as $filename) $page->client_upload->add($filename); $lastfile = $page->client_upload->last(); $lastfile->description = implode(",", $input->post->lblProducts); $page->save(); echo "<p>You file has been uploaded successfully!</p>"; } } else { $uploadtab = FALSE; ?> <form action='./' method='post' class="upload_form" enctype="multipart/form-data"> <ul class='Inputfields'> <li class='InputfieldText Inputfield_lblUpload ui-widget' id='wrap_Inputfield_lblUpload'> <div class='ui-widget-content'> <p class="description InputfieldFileValidExtensions"><?php echo $fileextensions; ?></p> <p><input id="Inputfield_lblUpload" class="required InputfieldMaxWidth" name="lblUpload" type="file" maxlength="255" /></p> </div> </li> <li class='InputfieldText Inputfield_lblProducts ui-widget' id='wrap_Inputfield_lblProducts'> <div class='ui-widget-content'> <p> <?php echo '<select id="Inputfield_lblProducts" name="lblProducts[]" multiple="multiple">'; echo "<option value='no product selected'>Select your product</option>"; $products = $pages->get("/products/")->children(); foreach($products as $product) { echo "<option value='{$product->title}'>{$product->title}</option>"; if ($product->numChildren && $product->rootParent->path == '/products/') { foreach($product->children as $subsubchild){ echo "<option value='{$subsubchild->title}'>{$subsubchild->title}</option>"; } } } echo "</select> "; ?> </p> </div> </li> <li class='InputfieldSubmit Inputfield_upload ui-widget' id='wrap_Inputfield_upload'> <div class='ui-widget-content'> <button id="Inputfield_upload" class="ui-button ui-widget ui-state-default ui-corner-all" name="upload_submit" value="Upload" type="submit"><span class='ui-button-text'>Send</span></button> </div> </li> </ul> </form> <?php } ?> </div> </div> <?php } } else { ?> <form action='./' method='post' class="login_form"> <ul class='Inputfields'> <li class='InputfieldText Inputfield_lblUsername ui-widget' id='wrap_Inputfield_lblUsername'> <label class='ui-widget-header' for='Inputfield_lblUsername'>Username</label> <div class='ui-widget-content'> <p><input id="Inputfield_lblUsername" class="required InputfieldMaxWidth" name="lblUsername" type="text" maxlength="255" /></p> </div> </li> <li class='InputfieldText Inputfield_lblPassword ui-widget' id='wrap_Inputfield_lblPassword'> <label class='ui-widget-header' for='Inputfield_lblPassword'>Password</label> <div class='ui-widget-content'> <p><input id="Inputfield_lblPassword" class="required InputfieldMaxWidth" name="lblPassword" type="password" maxlength="255" /></p> </div> </li> <li class='InputfieldSubmit Inputfield_login ui-widget' id='wrap_Inputfield_login'> <label class='ui-widget-header' for='Inputfield_login'>Login</label> <div class='ui-widget-content'> <button id="Inputfield_login" class="ui-button ui-widget ui-state-default ui-corner-all" name="login_submit" value="Login" type="submit"><span class='ui-button-text'>Login</span></button> </div> </li> </ul> </form> <?php } ?> - the other one is a logout template which does a simple 301 redirect: if($user->isLoggedin()) $session->logout(); if ($page->redirect_page) $session->redirect($page->redirect_page->url); I also created a new role, added a user.
  15. I found it on http://www.cmswire.com Been working with open-source content management systems for a long time now Drupal, MODx, CMS Made Simple, ExpressionEngine, etc.. but none of them provides the simplicity that PW provides. The jQuery style API is just AWESOME. Until now I didn't had the feeling that I had to bend in every corner to get the result I wanted, it all went SIMPLE
  16. Hi Ryan, I have no other context of when it happens, I've checked log files, tried to reproduce it,etc... all without success The website seems to run smoothly,but every other day I get this error in my mailbox. Sylvio
  17. Hi, Lately I'm getting this PW error (PW 2.0) and I'm not able to find what's causing it? guest:/?/:ProcessWire Error:Exception: Not unique table/alias: 'rootparent' (in /var/www/vhosts/showled.tv/httpdocs/wire/core/Database.php line 72) Thanks Sylvio
  18. Hi Ryan, In your first snippet (using WireUpload class) I had to change somethings to make it work, first passing the extensions as an array and second this line foreach($u->execute() as $filename) $page->add($filename); I had to change it to: foreach($u->execute() as $filename) $page->files->add($filename); (added the field in the add method) Everything works correct, one question, how do I update the 'Description' of the file field after the file has been added?
  19. Apeisa, I agree about your comment regarding HTML5Boilerplate, if you use it, clean out what you don't need! On the topic of building the website with PW, it was awesome. Flexible and ease of building anything you want (well not anything), what I mean, there wasn't a moment that I thought I couldn't do it with PW. Small note: I wish PW2.1 was already released when I started to build this website, PW2.0 lacks that fine grain control that you have in PW2.1. I lacked control of editors deleting certain page areas, only using certain templates, etc... Next thing on the agenda will be writing a module! Sylvio
  20. Exactly what SOMA said ;D It's pretty handy You can read about it here http://html5boilerplate.com/docs/The-markup/#ie-html-tag-classes
  21. ShowLED starcloth systems, components, and custom LED installations set industry standards for innovation and ease of use. Flexible, lightweight LED curtains are the ideal medium for classic starry sky stage backdrops, colourful venue masking and decoration, star tunnels and walls, and animated video cloths. http://www.showled.com Uses PW2.0, a customized 'Form Template Processor' that enables you to save form data to a DB. Some other modules include: AdminBar, Fieldtype Select (AKA Drop Down), Redirects Process, RSS Feed Generator The client loves ProcessWire, the ease of adding, editing, etc of pages, especially in combo with AdminBar (by Antti Peisa). They have another website build with TYPO3, which is not bad, but they praise the simplicity (seen in user context ) of PW
  22. Ryan, That's fine by me, but I need to upgrade to PW2.1, I don't see an issue with this, because the client is filling up the website with content and the launch will be september. Is PW2.1 ready for production purposes? and if so, can you assist me with the upgrade. I can test it first on the PW website on my server, which is of course an exact copy of the one on their webserver. You can have a look at the project (bare in mind that the content is not all there yet:-)) www.showled.tv It uses alot of features of PW and plugins, the form plugin I extended with a save to database function, so all their from subscriptionsare saved to a db table, in the backend there is a 'non-guest' page with a table-view which accesses that db table, from there on they can print, export to excel, pdf, etc.... I love the flexibilty of PW, it's amazing, I hope you'll keep on putting your heart and soul into it, cause it will be my CMS of choice from now on! Regards Sylvio
  23. I have a customer who wants to provide a client login for his distributors, a password protected area where they can download high-res images, product guides, etc... I found a topic posted by Ryan and wandered if this is still the best way to do it in PW (2.0 latest release): http://processwire.com/talk/index.php/topic,17.0.html Sylvio
×
×
  • Create New...