Jump to content

Sylvio

Members
  • Posts

    57
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    United States

Sylvio's Achievements

Full Member

Full Member (4/6)

11

Reputation

2

Community Answers

  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.
×
×
  • Create New...