Jump to content

prestoav

Members
  • Posts

    221
  • Joined

  • Last visited

Everything posted by prestoav

  1. I've just upgraded to the latest version (0.3.1) from a previous version which was working OK. I'm now getting the following error when trying to send the test email from admin (this previously worked): Call to a member function new() on a non-object (line 158 of ***/site/modules/EmailNewUser/EmailNewUser.module) I see from the file in question that it's doing things with the password a that point but I'm not using the password generator at that point. BTW, the site is running PW v2.7.2 Any ideas?
  2. Hi AndZyk, Robots.txt fixed so thanks for that. The site is running compression and a couple of test sites I just ran it through confirm that. Is there something else you spotted that suggests otherwise? Cheers, Geoff.
  3. The template is based on Bootstrap so the grid comes from that. The favicon is uploaded to a hidden site-wide 'settings' page with an image field for the favicon. I call the image from that using: $pages->get("/settings/")->favicon->url I get all the other site-wide stuff that way too so that I can get page title and descriptions for page meta tags etc. Hope that helps.
  4. This is our latest site using PW. Most of the grunt work is done with core modules but ProCache makes sure everything is super fast and the core image resize function was deployed everywhere an image is used to make sure everything stays looking good. The site uses a premium theme for it's graphical layout with colours and some typography changed to match the companies in-house style. Page templates themselves are hybrids using bespoke collections of the content blocks in the theme. A 'site settings' page is was added to the admin which collects and allows edits to site wide details such as phone number, email, GA code and main menu items etc. Comments welcome! http://www.brownhensolutions.com/
  5. Hi Tom, Hey, there are no silly questions here! I searched and searched the fields and template for a 'max upload' setting but the only one I found was in the sub-field for the image which was set to '1' as I normally do when I need an image to be singular in a field. However, poking around I also found the 'Overwrite existing files' checkbox in the 'Input' tab of the image field. Checking this seems to have solved the issue. No idea why but I'm not complaining! Thanks Tom. Geoff.
  6. Hi folks, I have a production site which has been fine for the first few months but the client is now experiencing an issue with uploading further images to a repeater field. I've replicated the problem myself and get the same result. They have uploaded the first 9 items but can't upload the 10th and beyond. The repeater field uses an image uploader then two text fields for each item to form an image gallery. We have 9 items uploaded with no problem but when we try and a 10th (and 11th etc.) the image gets uploaded OK on editing but when we go to save the page (and the admin page refreshes) the the image is gone leaving just the text fields populated and the text 'No file chosen' next to the image upload button. One thing I have noticed when looking at the site/assets/files directory folder is the last image that loaded OK is at ID 1091 and there are already folders at IDs 1092, 1093 etc. I'm not sure how PW issues new IDs but I thought it might be related. I've used repeaters for these things before (up to 43 items on one site...) but I'm foxed by it here. Host: Fasthosts Ignite PW: 2.7.2 Can anyone give me guidance or has anyone seen this on their own sites? Thanks!
  7. I think this is now fixed. Following this thread: https://processwire.com/talk/topic/1002-cant-upload-imagefiles-problem/ I created /site/assest/uploads which didn't previously exist and then added this line to /site/config.php immediately below the debug line $config->uploadTmpDir = dirname(__FILE__) . '/assets/uploads/'; It seems the temp upload directory was either not set or not writable. Hope this helps someone.
  8. Hi folks, Pulling my hair out on this one! I've created a client site locally on MAMP then uploaded it to our Media Temple Grid server for client review and for them to upload content. All good. I then transferred it to the client's Fasthosts Ignite server and we get an 'Unable to move file to...' error whenever an admin tries to upload a new image or other file type via any page in admin. After trawling these forums (always very helpful!) I found various discussions around permissions and checked all files from /site/assets/ and below are 777. I also checked safe mode and Fasthosts insist it's off. The really odd thing is the file is actually being uploaded. When I check /site/assets/files/*pageidnumber*/ the file has been moved to the right folder OK. So it looks like it's just the admin side which is not acknowledging the transfer has happened. Just to check all folders and files were moved OK when the site was moved to the clients Fasthosts server I downloaded the whole site from Fasthosts again and installed it in my local MAMP and all of functioning as expected :-( So it defnitily looks server related. Unfortunately Fasthosts don't grant edit access to php.ini So I then tried reviewing phpinfo.php on both servers to try and track down the difference. My MAMP is running Apache but Fasthosts are running Fast CGI so the resulting pages are completely different. Can anyone point me in the right direction here or have any suggestions? Many thanks in advance. Geoff.
  9. OK, I think I found the problem for my installation. The browser was remembering the password even though the site had been moved between two sub domains (from a dev.mydomain.com to a www.mydomain.com). We needed to delete browsing history, cookie and passwords from the browser before the modal displayed again. This was true in Chrome on Windows and Safari on a Mac. >>> UPDATE <<< I thought I'd cracked this but apparently not. A completely new user this morning has the same issue in Both Chrome and Firefox on a Win 7 PC. :-(
  10. Hantzweb - did you ever resolve the issue with users seeing blank modal? I'm getting the same thing reported now the development site has moved to a www domain rather than the dev one. They (3 users) were seeing it OK on the dev domain but now just get a blank modal when they click to edit. Sadly I can't replicate the issue on any browser here but three independent users have he same issue so I know it's real! The only pointer I have so far is a report of 'Publisher does not allow it to be displayed in a frame' on IE. This looks like an x-frame-options issue from a bit of Googling, possibly in my case after the domain move?
  11. Hi Can, That worked like a charm first time. Thank you! Geoff.
  12. Is there a way to add the 'reply to' address using the core WireMail please? All else with the module is working fine but I couldn't see this function. I did note the extra_parameters function but can't find out anywhere if there is a command under extra parameters to set 'reply to'? Thanks in advance! Geoff.
  13. Hi LostKobrakai, thanks I hadn't spotted that facility. Now edited accordingly
  14. Hi all, PW: 2.7.2 Fredi: 1.2.0 Fredi working great on pages for me but not for $user :-( I have a page called 'My Profile' on the front-end of a site. The page is access controlled so that only a logged in user can see it and, thus, the logged in $user can see their own info. Other than that it's a normal content page that echos various parameters (name, address, email etc.) that are assigned to the logged in user. Heres an example of what's on that page (this works): echo "<span>Your company name: </span>" . $user->user_company_name . "<br />"; I'd like to add a link on this page to call a Fredi modal to change the users own info. So, I call this: echo $fredi->renderAll($user); (I'll edit settings on the Fredi call to set link text, field to edit etc later) Sadly no link appears :-( So, I added the following code into the page to see what permissions the logged in user had for their $user 'page': foreach ($permissions as $perm) { if ($user->hasPermission($perm, $user)) { echo $perm->title . "<br />"; } } I get this (as expected based on permissions for template): Edit an advert Delete pages - (for adverts) Edit pages View pages User can update profile/password Administer users Then I changed the second line of the code above to see what permissions the $user has for the actual page (rather for the $user): if ($user->hasPermission($perm, $page)) { I get the same permissions echoed. So what am I doing wrong??? I can't get a Fredi link to edit the $user no matter what I do. I've even tried this when logged in as the superuser and still nothing. Any help really appreciated. Thank you
  15. Thanks Tom. Although I had tried that idea your message prompted me to dig a little deeper. It does work but... The category I was testing was titled 'Hints & Tips'. Even though both the page title and category title were cleaned so the '&' was presented as the HTML entity '&' in both cases the selector still doesn't work. However, changing the title of the category to 'Hints and Tips' has made the selector you shared work. Awsome, thanks!
  16. Hi everyone, I'm using the ProcessBlog module successfully and adding a nice pagination with MarkupPager. All very successful thanks to pointers from the forums here! However, when generating the category pages I can't find a way to use $page->find with a selector for the blog categories. The categories for an individual post are within an array of categories called 'blog_categories'. What should the $page->find construct look like if the categories are within $child->blog_categories? I've tried a few possibilities including this with no luck: Each page has the same name as the category (e.g. 'Events') $posts = $pages->find("template=blog-post, limit=6, blog_categories%=$page->title"); And this: $posts = $pages->find("template=blog-post, limit=6, blog_categories.title%=$page->title"); Any ideas? Is this even possible? All contributions gratefully received!
  17. Hi Adrian, that's a real help as I was getting confused exactly as you described! One question though, I've added a new field using the Options field type and tried some values. Single option values are working fine but I'm having no luck with Optgroups. I've had a look at the code in InputfieldSelect.module and found these comments: * If you want to add an optgroup, use the $value param as the label, and the label param as an array of options. * Note that optgroups may not be applicable to other Inputfields that descend from InputfieldSelect. However, even trying to back-engineer the code later in that file I can't understand the syntax for adding the array within the Detail tab of the created field in admin. Has anyone tried this and could share an example syntax? I really appreciate everyone's help!
  18. I really like the idea of modifying the FieldtypeSelect module and have gone that way. I can pick up the '-' conditionally and process differently but I'm stuck with finding an alternative to this line: $inputfield->addOption((string) trim($value),(string) trim($label)); Is there an alternative that adds an <optgroup> rather than an <option>?
  19. Thanks pwired & Macrura, will look into both your suggestions and report back!!!
  20. Hi all, Does anyone know of a field type that allows the generation of a <select> but with the ability to add <options> within <optgroups>? I'm basically looking for a field like the commonly used FeildtypeSelect but with optgroups. Many thanks in advance. Geoff.
  21. Hi there. New to PW but plenty of other CMS experience. Loving PW so far so thank you folks! I've installed Fredi on PW 2.6.1 and using it to create and modify pages just fine. The plan is to let 'front end' users add, modify and delete their own adverts to a site that I'm building. It's all working as planned except the follow up when deleting a page. On clicking the delete tab, checking the confirmation box and finally clicking 'Delete Permanently' the modal confirms (admin style) that the page has moved to trash and then shows the page tree within the modal. As this is a front end delete I'd really like the modal to close and return to a certain page at that point (e.g. a list of the users other adverts). So, my question is...is the page tree view after delete expected behaviour or am I doing something wrong? Code for delete button as I'm using it is: echo $fredi->hideTabs("content|children|settings")->setText("Delete This Advert")->setClass("btn btn-primary")->render("title|vendor|price|body|page_image"); Many thanks in advance. Have already learned a huge about about PW from everyones helpful posts!
×
×
  • Create New...