-
Posts
4,056 -
Joined
-
Last visited
-
Days Won
67
Everything posted by Pete
-
That was the issue Ryan - because I'm copying the content and haven't created the templates yet then that's the problem. Still, as you say some other way of checking might be better here, and the message isn't the prettiest either A one-line warning would be better I think and maybe still let you access images,or if that would totally break the output then some sort of warning and an option to override permissions (guessing that would be harder to code and thinking about it that wouldn't actually make much sense as why would you erode permissions like that).
-
Hi guys I'm using a custom template and trying to add images from other pages and getting this error: TemplateFile: You do not have access to images on this page #0 C:\xampp\htdocs\sc11\wire\core\Modules.php(316): ProcessPageEditImageSelect->init() #1 C:\xampp\htdocs\sc11\wire\core\ProcessController.php(136): Modules->get('ProcessPageEdit...') #2 C:\xampp\htdocs\sc11\wire\core\ProcessController.php(192): ProcessController->getProcess() #3 [internal function]: ProcessController->___execute() #4 C:\xampp\htdocs\sc11\wire\core\Wire.php(267): call_user_func_array(Array, Array) #5 C:\xampp\htdocs\sc11\wire\core\Wire.php(229): Wire->runHooks('execute', Array) #6 C:\xampp\htdocs\sc11\wire\core\admin.php(45): Wire->__call('execute', Array) #7 C:\xampp\htdocs\sc11\wire\core\admin.php(45): ProcessController->execute() #8 C:\xampp\htdocs\sc11\site\templates-admin\controller.php(13): require('C:\xampp\htdocs...') #9 C:\xampp\htdocs\sc11\site\templates\admin.php(13): require('C:\xampp\htdocs...') #10 C:\xampp\htdocs\sc11\wire\core\TemplateFile.php(88): require('C:\xampp\htdocs...') #11 [internal function]: TemplateFile->___render() #12 C:\xampp\htdocs\sc11\wire\core\Wire.php(267): call_user_func_array(Array, Array) #13 C:\xampp\htdocs\sc11\wire\core\Wire.php(229): Wire->runHooks('render', Array) #14 C:\xampp\htdocs\sc11\wire\modules\PageRender.module(236): Wire->__call('render', Array) #15 C:\xampp\htdocs\sc11\wire\modules\PageRender.module(236): TemplateFile->render() #16 [internal function]: PageRender->___renderPage(Object(HookEvent)) #17 C:\xampp\htdocs\sc11\wire\core\Wire.php(267): call_user_func_array(Array, Array) #18 C:\xampp\htdocs\sc11\wire\core\Wire.php(229): Wire->runHooks('renderPage', Array) #19 C:\xampp\htdocs\sc11\wire\core\Wire.php(289): Wire->__call('renderPage', Array) #20 C:\xampp\htdocs\sc11\wire\core\Wire.php(289): PageRender->renderPage(Object(HookEvent)) #21 C:\xampp\htdocs\sc11\wire\core\Wire.php(229): Wire->runHooks('render', Array) #22 C:\xampp\htdocs\sc11\wire\modules\Process\ProcessPageView.module(73): Wire->__call('render', Array) #23 C:\xampp\htdocs\sc11\wire\modules\Process\ProcessPageView.module(73): Page->render() #24 [internal function]: ProcessPageView->___execute() #25 C:\xampp\htdocs\sc11\wire\core\Wire.php(267): call_user_func_array(Array, Array) #26 C:\xampp\htdocs\sc11\wire\core\Wire.php(229): Wire->runHooks('execute', Array) #27 C:\xampp\htdocs\sc11\index.php(181): Wire->__call('execute', Array) #28 C:\xampp\htdocs\sc11\index.php(181): ProcessPageView->execute() #29 {main} If I change the page to the default "page" template, it will let me do so, but only on other pages using the default template. As a test, I created a new page with the same fields and settings as the default template and tried and got the same error. Any ideas? EDIT: Sorry, should mention that this is when inserting images into the body field via TinyMCE from another page.
-
It looks like I had tried tidying up the code in the module at the end of the night but something in some external code interfered if I included it during init - anyway, fixed some silly errors andover some code about and it's working again. It was partially because that particular module has to rely on some third-party files that aren't written amazingly well but that I have to live with for now, but mostly because it seems I got sidetracked some weeks ago and I thought the code was working fine but can't have been. User error strikes again
-
Never mind - I should have tried the golden rule of CMS systems: "Uninstall any custom modules one by one and re-test". Uninstalled my module that links in with the forums and I can create temlpates again. Beats me why it stopped working or even why it would even be running when adding a template! I probably need xdebug back on on my test server as well as I suspect that might have shown me the error of my ways
-
I'm not having much luck recently! Attached is a Firebug thingy that shows it getting a 301 error when requesting the templates/add "page" (line 2 - line 1 is presumably .htaccess reporting it's not a real file and redirecting it, line 2 shows it failing to find /add). On the working version line 2 reports a 200 Success message. I can't think why this wouldn't work. I've got another test install set up with the same version where it works fine. I copied index.php and the wire directory over the top of the "faulty" one (seems pretty safe?) and still no joy. Tried clearing browser cache and even a different browser Even replaced the .htaccess file with a fresh one just in case.
-
Looks like I might have to try a fresh install and see if I can duplicate it there.
-
For some reason, in the latest build, when I click the button to Add New Template nothing happens and it just refreshes the template list. Is anyone else experiencing the same thing? I can edit them fine, just cannot add new ones. Not entirely sure how I could debug this one
-
Hi Antti - various things have prevented me from working much on my PW site conversion the past few weeks, so I've only just got around to upgrading and after sorting out my embarrassing "images not resizing" issue, I'm now in the process of batch uploading images for a bunch of gallery pages. Have the biggest virtual keg of beer on me (or another drink of your choice)! This new system makes this part of my project - and no doubt a lot of other projects - infinitely easier and has transformed something that can be a bit tedious into something quite enjoyable! Well done! I know several admins on one of my sites who are going to be very happy when I've finished converting the site.
-
Ah. I'm an idiot. I blamed my tools, but it turns out I was a tool (British slang for "idiot"). I've had Acronis non-stop backup software monitoring that folder, so as soon as the file was uploaded the non-stop backup was copying the file to my backup location whilst PW was busy trying to resize it! I feel so stupid Oh well, turned off non-stop backup as I'm happy enough with my twice-daily full backups (a morning's work isn't as bad to lose as 3 months!). After all that, I can't believe I didn't think of this... oh well! And this definitely concludes this epic thread now
-
That link scared me :-\ Thanks for the link though - it probably would be much better if I took some time to learn how to do this properly rather than relying on a sometimes-buggy setup.
-
Cheers ryan Just to confirm, I've now got it working fine on my SSD too, so I'm chalking it up to a broken XAMPP installation. I think when I reinstalled XAMPP the last few times I tried to fix this, I must have copied over some apache settings or bad file permissions from the broken installation. Works now, so it's absolutely nothing to do with PW (which we knew) but in case anyone encounters anything like this in future on Windows then it might well be your XAMPP installation. Headache over
-
@adamkiss - which license do you have or are you using the free version for "personal" use like I am currently? I only came across it about a month ago but I was definitely impressed with it's simplicity in terms of the client end, and compared to other similar software it certainly is much cheaper for the commercial licenses. Besides, it does seem like a great investment when you think that you can share an idea with someone without having to go to them (thinking site design concept revisions as a quick example - "and you would click here to view page X") or waiting for them to come to you, or you can bug-track something on their screen or... well there's lots of neat possibilities where it can save money in the long run @ryan - yeah, that DropResize does look good, but there are two issues on the developer's to-do list that are quite big and he doesn't update it very often it seems. The first is it will resize small images to be larger as previously mentioned, but the big issue is if you resize using Bicubic Sharper it seems to add a weird black border on two edges. I did email the guy though and ask him if he'd consider fixing just those two things if I paid him (assuming it's a hobby project, makes him no money and that's the reason why he can't devote much time to it), so we'll see if he comes back with something - thought it couldn't hurt to ask. Annoyingly, after an hour or so of searching I couldn't find anything else as simple and elegant as that solution. Maybe it's time I learned some .NET. Wait, did I just say that? I feel dirty...
-
Okay, just for poops and giggles I decided that since I have two hard drives in my laptop I'd install XAMPP on the other hard drive and test this issue once again. Resizing now works fine Thing is, I could have sworn I tried this already! Oh well, I need to do some testing this evening, but if I track down what the exact cause is I'll let you know - I am wondering if it's because my main hard drive is an SSD and it's trying to write and then overwrite the same file so fast it's failing there. It makes some sense in my head anyway.
-
And on a similar topic, if you ever do need remote access to client's machines then I can't fault this bit of software for its simplicity: http://www.teamviewer.com/en/index.aspx It passed the "mum test". She installed it fine and I was fixing her PC in no time
-
Hi folks As I had to reinstall my laptop last month, I was about to install a piece of software that I've used before to batch-resize photos which is useful when creating websites for clients where they're supplying huge photos (anything of a few MB or more is a pain in large quantities as I'm sure you'll agree). Before getting to installing it today though, I thought "there must be a tool that monitors a folder and any images you put in there get resized automatically..." - and guess what, I found one: http://www.dropresize.com/ Now obviously this might be a little over the top for someone who knows their way around a computer fairly well, but I liked the idea of something that sits in your system tray for clients to be able to use when uploading their own photos to a site. If you think about it, once it's set up all the instructions you have to give them are: "copy all your photos to this folder before uploading them to the website". Provided you've got the software set up correctly on their machine, that's all there is to it (and even if you're working with a client remotely, installation instructions wouldn't be too difficult to write!). All they've got to do is remember to run the program when they start Windows, but you could even just add it to their Startup folder. EDIT: Just noticed that once you set some options, they're saved as an XML file so you can even tweak that and supply it to your clients along with the .exe file for hassle-free setup. Neat - two files, no installer and you're done! EDIT2: Ah, nuts. You have to be careful though as it also enlarges images that are smaller than the specified dimensions. So, only useful for photos at the moment (was hoping to use it to convert a site with various image sizes, so will have to be careful or find another script).
-
Looks good - my only comment would be that the brightness on the fields in contrast to the dark surroundings is a bit too much, but then I'm not sure how easy it would be to change the colour of TinyMCE which I guess is where the main problem would be.
-
Wow, that is good news - finally IE is catching up with the last few things that were holding it back. It would still be nice though if IE ever displayed exactly the same as all other browsers out of the box. I can rely on all the others to output my designs correctly, but even IE9 has its quirks so hopefully IE10 will be the end of such quirks and IE will no longer be the outcast
-
Wow - that's a lot of junk accounts. Might be worth coding a simple Q&A challenge question into the registration form if there's an easy way to do that (or a mod for SMF already). I used on on one site and it cut spam registrations down to one or two a week
-
Probably the easiest way to handle this currently is have a multi-line input field (textarea) and you can already tell the system how to display this in your templates, with a bulleted list already an option (I think). That way they just add one new item per line and the field automatically turns that into a list in your template
-
Just a quick note that might be of some use to somebody, I'm also looking at a publish_date field for a project for things like news articles and other pages as well as an unpublish_date field (think pages that are very time-sensitive and don't apply after a given date) - just a few other scenarios worth considering there. Are these two things something that might make it into the core further down the line ryan or is this something that would be best suited to a module? I'm only thinking the core as they're fields that appear in quite a lot of other systems, though there's certainly no reason why they couldn't be included in a module instead.
-
Cheers Ryan Hopefully I'll have something to show you in the coming weeks in terms of the website I'm working on - it's a personal project that's travel/accomodation based. It's not intended to make money to start with, but it will be an excellent showcase piece to show other clients and could make money further down the line. I imagine your Tripsite and villa website work makes it much easier to sell an idea (and this CMS) if you've already got an example or two to hand! There are other projects I've got in mind, but I'd like to get this one done first as for one thing it's something I've been meaning to do for years and, as mentioned, would make a good showcase. I'm all for collaboration - I do love working on larger websites as the additional challenges are usually fun and always give you a good feeling when you overcome them. That said, I don't mind working on smaller sites however they can often be very time-consuming and the time-to-profit ratio can sometimes get you down if you're charging a lump sum rather than an hourly rate. I like to be able to give clients an overall cost before starting work, but sometimes it doesn't work out so well... I'll leave it at that but I'm sure we've all built enough websites for folks to get what I mean I think overall I like working on larger projects because you don't have to chop and change too much - you can work on one project for a good length of time with the same set of people and give it your full attention. At the other end of the scale I worked at a company once in a web team and they were juggling 20 websites at once and working on each one for an hour a day and alternating it throughout the week so they could show the clients a bit of progress each week - I don't agree with that personally - it was chaotic at best. Thanks for the pseudocode - I think it will come in handy on the site I've mentioned here as well as my gaming one with a few modifications
-
Only problem (well, maybe not only ) is that you're then putting resizing code into the more generic fileupload js, and also when you resize an image this way it seems to be a PNG and so would need processing further on the server to get it into the correct format (thinking the PHP code for that pretty much already exists in PW though if you can force a resize to the same size and just a different file extension). Anyway, not as easy as I first thought
-
Just a quick one, I was having a read of things you can do with HTML5 and one of them suggests you can resize images before they're uploaded: http://hacks.mozilla.org/2010/02/an-html5-offline-image-editor-and-uploader-application/ Is this really possible? If so, it's awesome and I would like to know if it's possible to include this in your code Antti if an image field has width and/or height dimensions set? One of my biggest gripes is that often you'll hand a website over to the webmaster and they won;t know about resizing images before they're uploaded so, especially as digital cameras are getting better and better, you'll frequently get images of 5mb at something silly like 3000 pixels wide being uploaded If it's possible to do this, it would be amazing. It would also solve my issue with Windows not wanting to play nice and resize images in PW as this would happen before uploading, but that's just a nice side-effect EDIT: Potentially more useful reference for this: http://webreflection.blogspot.com/2010/12/100-client-side-image-resizing.html EDIT2: The possibilities here seem limitless - you can even perform cropping on the client side before uploading, but I'd settle for resizing before upload for now purely because of the speed benefits - especially when uploading multiple images
-
This is a continuation of something that was being discussed in the second part of ryan's post here: http://processwire.com/talk/index.php/topic,414.msg3192.html#msg3192 The reason I was interested in this is because I've had a scenario in my head for a while. I'm intending to build an accomodation directory website (being intentionally vague here) and there will hopefully be the opportunity to build some individual websites for the individual accomodation (for the sake of argument let's assume hotels, but it's not). The way I therefore see site cloning being useful for that is if the owner is allowed to update content themselves on the directory website and then this information automatically (via cloning, probably not instantly) gets updated on the specific hotel website. So whilst I'm being vague about a website I'm intending to build, this is one scenario that could be a real selling point to customers. I'll also have the luxury of having websites hosted on the same server, at least to start with, so that would probably make things even easier. I think I'd definitely look into the web service approach as well though as that would make it easier if it took off. Something unrelated that's been bugging me for a while Ryan - on the villa website you've created, how did you determine which photos would go across the top and which ones down the side? Also some are square in two columns and others are wider covering both columns - surely that's all automatic but I can't get my head around how it's been done. No worries if it's a trade secret