Jump to content

JohnHalsey

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by JohnHalsey

  1. I've been trying to create a new user in Processwire to allow my client to go in and add / edit pages/content etc.

    I thought this should be pretty straight forward but after having created the user, logged in as them to test it, and all they can is view pages.

    I created a new role, gave the role permission to:

    • View Pages
    • Edit Pages
    • Delete Pages
    • Move Pages
    • Sort Child Pages
    • Change Template on pages
    • User can update profile/password.

    Then created a new user and gave it this new role ( i was told guest was mandatory).  

    Yet when I log in as that user, all i can do it view.

    I have I missed something obvious?

    Thanks

  2. I ran it again in debug mode and got this.  I've starred out my password

    Fatal error: Exception: Unable to generate password hash (in /www/sites/bf5/fe5/www.reppro-kids.co.uk/web/wire/core/Password.php line 270) #0 /www/sites/bf5/fe5/www.reppro-kids.co.uk/web/wire/core/Password.php(93): Password->hash('****') #1 [internal function]: Password->___setPass('****') #2 /www/sites/bf5/fe5/www.reppro-kids.co.uk/web/wire/core/Wire.php(359): call_user_func_array(Array, Array) #3 /www/sites/bf5/fe5/www.reppro-kids.co.uk/web/wire/core/Wire.php(317): Wire->runHooks('setPass', Array) #4 /www/sites/bf5/fe5/www.reppro-kids.co.uk/web/wire/core/Password.php(73): Wire->__call('setPass', Array) #5 /www/sites/bf5/fe5/www.reppro-kids.co.uk/web/wire/core/Password.php(73): Password->setPass('****') #6 /www/sites/bf5/fe5/www.reppro-kids.co.uk/web/wire/modules/Fieldtype/FieldtypePassword.module(72): Password->__set('pass', '****') #7 /www/sites/bf5/fe5/www.reppro-kids.co.uk/web/wire/core/Page.php(517): FieldtypePassword->sanitizeValue(Object(User), Object(Field), '****') #8 /www/sit in/www/sites/bf5/fe5/www.reppro-kids.co.uk/web/index.php on line 216

    This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged.

    My clients hosting is with LCN.  I've sent them a support ticket to find out what version they're running.

  3. I've just put a new site up on a live server.

    The site works as it should, but when I go to log in to the back end I get the below error.

    Unable to generate password hash

    I found a post on here about resetting the password and running a small script in a template to reset password, then running a page from the that template on the server to run the script, then I should be able to log in. But that hasn't worked.  I added the code to the template and uploaded it to the site, ran the page and got an internal error (looks like 500 error).

    Any advice is appreciated.

    Thanks

  4. I have created 2 templates (so far).  One is for the hompage, it includes files which in turn have links to things like the stylesheet, images etc.  This works fine.  I created a template on PW with this template and created all my editable fields, its all good, page display properly.

    I now have a second template as a more basic content page.  I have done the same thing, used the same include files (which is it recognising) but its not happy with the links inside those includes and I can't understand why not.  I uploaded the template to PW in the same way, created my fields, created a page with this template, then when I view the page it shows everything I entered but it doesn't recognise the stylesheet or images etc.

    Any suggestions welcome, I'm pulling my hair out.  Man I need a coffee!

    FYI I'm using version 2.4.0.

    Thanks
    John

  5. OK, i think I have something.
     
    I started by commenting all lines in the .htaccess file (that werent already commented).  tested the site and it loaded up.  Then one by one, uncommented the lines and tested the site.
     
    When I uncommented this line...
     

    SetEnv HTTP_MOD_REWRITE On

     
    I got the error again.  I commented it back, and checked the rest, uncommenting and refreshing.  All is fine.  Its just this one line.  I also tried it as 'Off' but got the error again.

    So now the site loads.  I can access the login page, but I cant login.  It doesn't accept the password I set up when I did the local install.

  6. I know this thread is a little old, but I'm having the same problem.  Developed a site locally on MAMP, then tried to move the site over to a sub domain, copied the database over, changed the database settings in the config.php file, and am getting a 500 Internal Server Error.

    I've been through the .htaccess file and tried uncommenting that 'RewriteBase /' line but no luck.  I've tried all the other lines in there - uncommenting, trying again, re-commenting, trying the next line and so all the way through the file and i still get the same thing.

    If i remove the .htaccess, or change its name to htaccess.txt the site opens up (although I can't get to the login screen). 

    Any thoughts?

  7. Hello again.

    OK, here's an update.  I changed my .htaccess files name to htacces.txt and now the page loads (albeit without loading the stylesheet, which I can look at).  But when I try to access the admin area, i get a 404 error.

    I'll be honest and say I'm not really sure what I need to change now.  How do I tell if the files in /site/assets/ are writable?

    Thanks for your help.

  8. Hello,

    I've been user Processwire for the first time and absolutely love it.  I had used MODX before and this is so much better.

    But I am getting a little stuck when it comes to uploading my local MAMP site to the live server.  This is what I have done so far.

    • Created new Database on live server, exported database from local, and imported to the new db in live.
    • Changed settings in /site/config.php with new database and user details.  But while I'm on this, my config.php file has 2 areas to edit all the database details, is this normal?
    • FTP'd all files over to the live server via FileZilla.  
    • When I load up the domain (web.johnhalsey.co.uk) I get an error.  500 Internal error.  

    I have tried putting debug mode to true in the config file but it doesn't change the error.  Have I missed something blatantly obvious (its very possible).

    Any help is appreciated,

    Thanks

×
×
  • Create New...