Jump to content

lenoir

Members
  • Posts

    152
  • Joined

  • Last visited

Everything posted by lenoir

  1. Well, that's the thing. I get the error message above, but no error listed in the log. I haven't installed much. I got the ProcessExportProfile, the TextformatterVideoEmbed (not in use though). Here's what i was working on when it happened: I added language support to get the field datetime in german. I didn't succeed and decided to remove the language modules. I probably de-installed the wrong module, since all of a sudden were both german AND default language gone. I don't really know what the next step was (i don't recall doing much), but anyway i couldn't access to any PW page, frontend nor backend. Yes, that's where I got the first error "2014-01-15 03:58:26 guest http://dev.neuland-f...ch/admin/login/ Recoverable Fatal Error: Argument 2 passed to LanguageSupportPageNames::getPagePath() must be an instance of Language, null given, called in /var/www/vhosts/neuland-film.ch/dev.neuland-film.ch/wire/modules/LanguageSupport/LanguageSupportPageNames.module on line 324 and defined (line 183 of /var/www/vhosts/neuland-film.ch/dev.neuland-film.ch/wire/modules/LanguageSupport/LanguageSupportPageNames.modul"
  2. Yes, i create a document called tool.php with the above script and i got the "internal server error". Hello World works fine. Apparently, I can't get to anything from PW anymore. Thanks.
  3. Thanks Soma for the quick reply. Unfortunately that didn't work: I got the following error: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Error has been logged."
  4. Hi, I'm experiencing some big problems with a site i'm developing. It's frustrating, since my client already started filling in the data. Anyways. I'm installed the language package for german and de-installed it afterwards (I wasn't sure i would need it). Now i'm blocked out of the admin pannel, can't access to any page on the frontend (i get an "Internal Server Error"). I checked the error log and found the following: 2014-01-15 03:58:26 guest http://dev.neuland-film.ch/admin/login/ Recoverable Fatal Error: Argument 2 passed to LanguageSupportPageNames::getPagePath() must be an instance of Language, null given, called in /var/www/vhosts/neuland-film.ch/dev.neuland-film.ch/wire/modules/LanguageSupport/LanguageSupportPageNames.module on line 324 and defined (line 183 of /var/www/vhosts/neuland-film.ch/dev.neuland-film.ch/wire/modules/LanguageSupport/LanguageSupportPageNames.modul I have no idea how to fix this… I tried re-installing the wire, didn't help. I'm afraid of losing data and some work on the templates if i have to do a fresh install. Can anyone help me out? Thanks a lot. It's this line of code that's creating the error (probably not able to load the language bit?) $event->return = $this->getPagePath($page, $language);
  5. EDIT: logged out, logged in, worked. Can't really tell what the problem was. Hi, I'm sorry if this is a stupid question, but i have this problem and i don't know how to solve it. I installed the export profile module and it showed in the SETUP area, but when i clicked on it, it said something like "no such file" (or similar because i don't see it anymore and don't remember it exactly). I can't find the module in the modules page and i tried to delete the module but that didn't help. Then i went to the setup page under "Home --> Admin --> Setup" and deleted the export profile page. Now it's not showing in the SETUP area, but i can't install the module again: it doesn't show in the modules list and says "no new modules". Can anyone help me with this? It would be greatly appreciated. Thanks
  6. Soma: that's an interesting thought. I don't know what the discussions are in the forum, but i can only see one small issue with this solution: it can be confusing to select a blank item of a dropdown if the user wants to go back to the "normal" state. Still I'll give it a go, since it'd be a better solution than a radio without default value. Thanks.
  7. Thanks onjegolders, Did this already. It's mainly an issue in the admin page: I would really like one of the items of the radios to be selected.
  8. Hey there, I have a page field in the form of radio buttons, where the user can select the importance of the article: Very important, important, normal. I would like to make the default value "normal", but can't think of any way of doing it. Any help? Thanks
  9. Thanks other Andrew! I hadn't seen that yet. The 'blank' install from soma is exactly what i was looking for. @MarcC: thanks for pointing it out, i didn't even noticed myself!
  10. Hey there, First: thanks for this great CMS! I've been working with a bunch of other systems in the past and I'm very satisfied with this one. One thing that bug me when downloading the latest version is that there's always a bunch of templates, fields and pages that I don't need. I always delete these as a first step in order to have a clean version to build upon. What do you think of a "skeleton" version of PW as a alternate download? I'm thinking of a raw version without the "welcome" pages, etc. David
  11. Thumbs up Diogo: works perfectly, feels like it's always been there ;-) @ryan: reckon it could be by default on the next release?
  12. Detroy the world if you wish, just let us know when you got a version running.
  13. Thanks to you both! @alanfluff: I use the description fields quite often as well and find it very handy. But I've noticed over the years that a CMS can't be too straightforward: some of our clients don't have much computer skills and they end up doing pretty creative stuff with their content if it's not 100% clear ;-) @soma: Thanks for your suggestions. I guess the latter is more up to my coding skills, but i do like the simplicity of the module solution. However, I changed the famliy settings of the parent template as suggested and that solved my problem.
  14. Hi, I've got the following issue: I'm renaming the title field on the team pages of a website. Basically, it's confusing to enter the name of a member of the team in the title field… (specially when there's another field right underneath it called 'name'). So I've used the "context" function to change the field name, which works fine as soon as you've saved the new page. Before that, the field is still called 'title'. (see screenshots) Any ways around this? Suggestions? Also, is it possible to rename the 'name' field? I'd rather call it something like "URL Name", or something similar, to avoid confusion from the client. Thanks! David
  15. I often try to edit a page by double-clicking on it's title in the tree. Intuitively. I think that would be a nice benefit for clients editing many pages.
  16. Hi Matthew, Thanks for your reply. That's what i looked at in the first place, but with PHP i'm sure it'll be rendered correctly in all browsers, with or without js activated. I think it'd be more efficient dropping these 4-5 lines of code upon saving or uploading the image… David
  17. Hi, I want to process images being uploaded to PW by a client. Basically, making a sepia version of the images (with manual settings). I'm wondering: where's the best place/moment to implement this kind of process? Do you have any suggestions? FYI: I'm also using the cropping image tool by Antti Peisa. Here's my code. It loads the image, filters it and then overwrites it. $image = imagecreatefromjpeg('myimage.jpg'); // the original file imagefilter($image, IMG_FILTER_GRAYSCALE); imagefilter($image, IMG_FILTER_COLORIZE, 19, 18, 0); imagefilter($image, IMG_FILTER_BRIGHTNESS, -10); imagefilter($image, IMG_FILTER_CONTRAST, -2); imagejpeg($image, 'myimage.jpg'); // overwrites the original file. Thanks!
  18. hmm. Tried it, doesn't solve the problem though. hmm N°2. Might have actually solved the problem. I had to reset Safari and now it works… Go figure. Thanks Soma.
  19. Hi there. One month later, one project later: same issue (almost). Processwire's growing on me quickly, but there are a couple of things that kind of drive me nuts. And one of these is the whole selector / urlsegment thing. For some reason I struggle a lot with those and can't find answers to my questions in the tutorial or on the web. Therefore, my issue below. The following code doesn't work. $segment=$input->urlSegment1; $segment=$sanitizer->pageName($segment); foreach($pages->find('wh_mitarbeiter_kategorien=/portrait/mitarbeiter/kategorien/{$segment}') as $child){ //magic here. } Now if i replace the {$segment} bit by 'a-bis-z' (which is the category i'm looking for), it works perfectly. Any idea? Or do you need more information? Thanks for the help.
  20. Hi, thanks a lot for this german package! It's great to be able to provide customer with their own language. there's something missing though, it's a detail but i've been using it a lot in a current website so it's bugging me a little. The multiple page field type isn't translated. The words "add" and "cancel" still appear in english. Is it something you're aware of? Thanks.
  21. Ok, solved the issue. Apparently urlSegments don't work with "/#/". I replaced this URL: …/company/team/#/member by: …/company/team/member/member-name This not only works, but actually makes more sense…
  22. Hi, I'm posting another question here, since it's related. I have a URL like this: …/company/team On this page, i have all the team members linked <a href='#/{$child->name}'>{$child->title}</a> However, i can't get the urlsegment to know the name of the team member. $member=$input->urlSegment2; urlsegment1 doesn't work either. Won't UrlSegments work with dashes? Any suggestion? thanks for your help! EDIT: Url Segments are allowed.
  23. …and this problem just occured. I could solve it by adapting the conflicting page's name, but on the long run it's definately not going to be the best bet. Should I avoid using their name to get pages?
  24. Thanks to both of you! I wasn't aware of the sanitizing process… Works like a charm! I'm using the page name because it appears in the URL and i want to keep them clean.
×
×
  • Create New...