-
Posts
396 -
Joined
-
Last visited
-
Days Won
15
Everything posted by heldercervantes
-
Error: Unable to create temp dir
heldercervantes replied to heldercervantes's topic in General Support
Nope. Left "backup all tables" checked. -
I'm getting this weird error, any idea how to get around it? I was having problems importing content via API. I had a bunch of tech PDF files to add to a products catalogue and the online server was timing out in the operation. So I used Ryan's ProcessDatabaseBackups module to grab the DB from the online server and downloaded the whole assets directory to update my local version, then did the PDF import locally. Then I used the same module to overwrite the online DB and reuploaded the assets folder. Now there's a first section of products that work fine, as does the rest of the site, but getting to an image from the second section on PW crashes and outputs this error. The same page that outputs this, when edited on the CMS shows no problems. I've also checked permissions and even went 777 on the whole thing, but no cigar. Error: Exception: Unable to create temp dir - /var/www/vhosts/isma.pt/httpdocs/site/assets/cache/WireTempDir/.PagefilesManager2231/1/ (in /var/www/vhosts/isma.pt/httpdocs/wire/core/WireTempDir.php line 113) #0 /var/www/vhosts/isma.pt/httpdocs/wire/core/PagefilesManager.php(473): WireTempDir->get() #1 /var/www/vhosts/isma.pt/httpdocs/wire/core/Pageimage.php(361): PagefilesManager->getTempPath() #2 /var/www/vhosts/isma.pt/httpdocs/wire/core/Pageimage.php(245): Pageimage->___size(270, 284, Array) #3 /var/www/vhosts/isma.pt/httpdocs/site/templates/product.php(39): Pageimage->size(270, 284) #4 /var/www/vhosts/isma.pt/httpdocs/wire/core/TemplateFile.php(182): require('/var/www/vhosts...') #5 [internal function]: TemplateFile->___render() #6 /var/www/vhosts/isma.pt/httpdocs/wire/core/Wire.php(398): call_user_func_array(Array, Array) #7 /var/www/vhosts/isma.pt/httpdocs/wire/core/Wire.php(333): Wire->runHooks('render', Array) #8 /var/www/vhosts/isma.pt/httpdocs/wire/modules/PageRender.module(422): Wire->__call('render', Arr
-
Yeah in this case the problem was a dirty solution that I hadn't noticed I left there, mixing hard-coded names in the JS with names read from the pages when passing things around. Stupid mistake.
-
Thanks for the heads up Dragan. It appears "someone" changed the name of two pages that are vital for the finder
-
Hi guys, Just launched my latest project, The Tourists' Affairs: http://www.thetouristsaffairs.com/en/ This one was a pleasure to build. It's based on a tours catalogue, features a tour finder, and for the first time I based a gallery on Instagram embeds. You can see those working on each tour. I'm using my basic ingredient set here: Languages, AIOM+, MarkupSEO, and not much more. Not big or complicated, but neat.
-
I've had this happen before, but now I got this problem again and I'm wondering what it's about. I use the basic <?= __('Contacte-nos') ?> method for adding translatable text to templates. Some of these are not appearing on the form when I edit the file's translations in PW. Take this line of code: <?= __('1 ou +7 pessoas?') ?> <a href="#" class="contactsMenu"><?= __('Contacte-nos') ?></a> The first string "1 ou +7 pessoas?" appears when I edit the translations, but the second one doesn't. Eventually I figured out I can only have one of these per line of code. Adding a line break somewhere somewhere between them was enough to make both translations show up in the form. Problem solved, but curiosity remains. What is the reason for this?
-
Hi guys. I'm about to launch a new website for a client in Denmark and he asked for hosting provider suggestions. We don't need much, it's a small site. Anyone got a recommendation? thx, H
-
Just a wee rant. Literally, it's simpler and easier to build a website in PW than it is to manage content on friggin' Sitecore. I mean WOW! How much effort did they put into making it such a complete pain to use? Anyone ever had the bad luck of touching it?
- 1 reply
-
- 1
-
OMG Reno that looks exactly like what I was asking for. Admit it man, you just slapped that together, just cause you can. Now the question is, how many beers will we have to buy you to get that code?
-
I agree, the focus must be to make something we'd be comfortable using, rather than promoting PW. In my case, I have two clients for whom I manage their websites. Everyday I get multiple people sending emails "change this", "add this news piece", "change the price of this car", "make me a feature promoting this". So just the ability to have them adding tickets, attaching files, have comments back and forth and see what's open or closed would be awesome.
-
@bernhard good point there, about keeping it up to date. Gitlab looks cool, but a lot like Trello and something teams would use internally, rather then a doorway for client support. Here's a tease
-
I'm going to relate this to PW, promise. I'm looking for a cool, simple, free helpdesk system. Nothing too fancy, just letting users in, post a ticket, get replies, talk back, close ticket, reopen ticket, close again. See a list of what was requested, what's open, what's done. Anyone got suggestions? I can only find paid or crap solutions. No middle ground. Now the link to PW: As a way to promote PW, would it be a good idea if we had projects, like a ticket system, free and based on PW? You'll all probably agree it would be relatively easy to pull off a ticket system in PW. I'm imagining something styled by the theme system (I love Reno), using an installation profile to setup, the roles system that's already there, and sold as "the free, processwire powered helpdesk system". Devs need ticket systems and like me want to avoid spending a dime. They find this and try it out. It's cool. Let's have a look at PW since we're here. Whoa this is awesome! And my clients will see the same beautiful, tidy interface on their CMS? Screw you WP, I'm going PW from now on! Does this sound like a good idea or am I just trippin?
-
I've been calling it a framework instead of a CMS. I find that's a great starting point to explain how much different it is from a CMS such as WordPress, how it makes zero assumptions and allows you to build whatever you want without having to hack the S#!7 out of it or depend on a bunch of plugins. And so far so good. Clients have been trusting my arguments and accepting PW. Agencies... not so much. They're like christians, and accept only the holy word of WordPress (or whatever they use). They also laugh at me when I say I don't use Bootstrap or CSS preprocessors. Apparently it's a flaw to know CSS enough to not need a crutch to make a responsive column based layout. I'm drifting. Sorry.
- 27 replies
-
- 10
-
SITE OF THE WEEK! Beautifully crafted. Splendid work. And your using MapMarker. Good to see other people are putting it to good use.
-
Awesome! Personally, I prefer to keep my code as basic as possible and avoid frameworks, but this is the kind of thing that helps the developer base grow and we all win. Great work.
- 11 replies
-
- 1
-
@DaveP, what's your setup? Haven't seen it crash anywhere yet, but lower spec machines get quite slow. iPad 2 and a 2012 Galaxy tablet choke a lot on the starting animation. I have improvements on my roadmap. Still no deep linking to projects, and I do need a fallback version for devices that can't handle all that's going on.
-
Probably is. Much learning on this one
-
This is my most ambitious PW site yet: http://vroom.pt It's an auto ad portal specially designed towards professional dealers. Some highlights you can't really see just browsing the website: Custom CMS for dealers (screenshot); Auto generated, customizable website for each dealer (examples here and here); The dealer can choose between a dark or light theme, then set a tone color; More themes will be added in the future with completely different designs. Optimized search algorithm to keep speed reasonable even when searching through thousands of results.
- 3 replies
-
- 15
-
Hey guys, Just yesterday I launched my new website, SuperTINY agency : http://supertiny.agency. It's a small but pretty heavy website with all the webgl going on. Older machines will choke. I'm using PW v3 on this one. Took only a couple of hours to install, setup the fields and templates necessary to run the portfolio, add AIOM and SEO and get it running. Got to love PW for that. The case studies are built using a repeater with fields that show/hide according to what's selected on a "type" selector. Clean, simple, just the way I like it. Enjoy.
-
Hi, I've seen the SchedulePages module, but that only handles publish or unpublish, and I need more. Take a VAT table for example. On the 1st of August one of those values is going to change. Of course I can add date/time fields to control validity, but I'm looking for a "leaner" way that perhaps could be used in other occasions. A wider version of SchedulePages that could handle changes in fields would be perfect. Any ideas?
-
http://jacinto-lda.com/ This is an "engine overhaul" of an existing site. Design was kept pretty much the same, but the proprietary CMS was replaced by our beloved PW, and it was made responsive, SEO and share friendly. This project prompted the ImageMarker Fieldtype & Inputfield module, coded by @Kongondo. You can see it in action in the Company / International page. Other features include a very custom vehicles catalogue. Translations are a work in progress, so some out of place portuguese is expected.
- 1 reply
-
- 10
-
Well I DID say I'd probably feel dumb in the end Forgot to save
-
With a little help from another post from Ryan, I got this: $dir = $page->filesManager->path; $dit = new DirectoryIterator($dir); foreach($dit as $df) { unlink($df->getPathname()); } rmdir($dir); $pages->uncache($page); And away go all assets from said page.
-
Doesn't seem to do anything. I'm trying $page->images->removeAll() I'm also finding junk files in an example page that aren't in the images field. I'm thinking these are a result of interrupted saves or something like that. Isn't there a way to just delete the assets directory for the page?
-
Hi. I'll probably feel dumb when you give me the solution, but I can't find this anywhere. I want to delete all images and resized variants from a page, keeping the page. How is this done via API? thanks, H