Jump to content

700ml

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by 700ml

  1. I've changed the charset to "ascii" and collation of field_pass to "ascii_general_ci", and created a new user "admintest". the " login - failed" still persists... I'm afraid I don't have any meaningful backup ? Is there a way to repair this? At this point, I am unsure what went wrong. The problems definitely appeared after modifying the table character encodings and collation. I wrote a SQL query which modified all the utf8_bin fields into " CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci". I then manually reverted the non- "text" or "mediumtext" or "longtext" type fields back to the previous default "utf8_bin" using the PhpMyAdmin graphical UI. I've also noticed that the "field_pass" in this database shows "type": char(1) , for the data and salt rows. When inspecting other databases for other ProcessWire projects, it shows char(40) and char(32), respectively.
  2. Thank you for your reply. I have done so – created a new superuser "admintest", set a password. Tried to login from a new tab, then new incognito window, no luck: login failed. I couldn't foresee where such a hardcoded password could be set/found... At this point, I am thankful I am still able to login using the ready.php hack, but it does not feel like a good longterm solution ?... The line was in my `site/config.php` file, thank you for the tip... The problem has happened nonetheless ?
  3. Update: Added system info in my first topic post. I have logged out, changed the line of code in ready.php to update the password for Editor (by adapting the same code from your answer) and was able to log in into Editor... Now, I am trying to login into Admin, after noting and keeping the new password,to receiving the same error: admin - Login failed I have tried both the new and the old password, to no success. I wonder what could be causing this... The suggested method only seems to work, when the line changing the user password, is enabled in `/site/ready.php`. As soon as I comment out the line, log out, and try to log in again,the same error persists. My only suspect could be some encoding fault in the database? but perhaps I am wrong.
  4. (update: sadly not working; see below) Hey! Thank you so much for your reply. The steps you proposed worked, and I was able to login. Huge relief, thank you once again!! ? I have no idea what caused the error all of a sudden. I imagine changing the character encoding of all the utf8_bin fields was one step too far... I've dialed back the changes in PhpMyAdmin to their defaults for all `pages` and related tables, while keeping it at utf8mb4_unicode_ci for the template tables and text-input fields... And for some reason, pasting the password reset code into the homepage template file, under the php opening code, did not work... Thank you once again.
  5. (Update: system info: ProcessWire Version: 3.0.210 Hosting Information: shared hosting via cPanel @ Namecheap PHP Version: 7.4 Mod_Security: disabled ) Hello dear community, I have been working on the website one week ago, changing the char_sets in the database via PhpMyAdmin from utf8_bin to utf8mb4_general_ci. In order to enable emoji support. And I turned off the ModSecurity in cPanel on my shared hosting, as asset uploads were not working properly. Everything worked fine with logging into "admin" or "editor" user. Now, I've returned to work on the website 6 days later, and I am stuck at the "Login failed" message. When I look in `/site/assets/logs/session.txt`, there is a message that says: `2023-06-12 22:03:43 guest https://www.website.com/admin/login/ Error: Failed login for 'admin' - Invalid password`. I am completely unsure regarding what to do, and I am in urgent need of any help. I have tried to reset the password as per this tutorial: With several variations of the fix. Nothing has worked so far. Any advice and practical pointers or troubleshoot steps would be more than welcome. I made a backup of the database before updating the charsets and collations. This is my first important client project and I am terrified of it not working. Thank you again for any help or pointers.
  6. Hello! New to ProcessWire, it's been a great experience so far! I'm using a module (Import CSV) that requires me to enter the URL of images. I have uploaded a folder of all the images into a directory at path "/site/templates/img" –– however, when I try to find the image ("https://www.mysite.com/site/templates/imgs/image1.jpg"), ProcessWire returns a 404 page... I'm wondering how I can setup permission so that a folder of files can be accessed via URL and referenced in this module, as either a full-URL, or where to put the files/what to setup, so it can be read as a relative url! Thank you for any support.
  7. Thank you so much for all the replies everyone! Another issue that I've encountered is the fact, that I would need to add things in a nested way. E.g. Page 1 (template: page-store) Page A (template: detail-product) Page B (template: detail-product) Page 2 (template: page-store) Page C (template: detail-product) Page D (template: detail-product) and so forth... for a total of 50 Parent pages, with 1-3 children! Does anyone know how this parent-child solution could be implemented, and how to create such a nested structure. It's really important for my project that the user can access the subpages via '/page-1/page-a' for example. Thank you for all the help so far!
  8. Dear all, I haven't been able to find an answer to this specific question – my apologies if it has been already answered. I'm working on a website, with many subpages using the same template (let's say "blog-template"), with fields (title, subtitle, location, price, link, textarea, photos). The data for each subpage is being collected via an online form (JotForm), and each respondent's row corresponds one subpage. It's around 50 rows – creating a new instance of a template, and manual data-entry, will take a very long time – so I wonder if there is a way to automate this process, and convert the (properly formatted if needed) spreadsheet, into a series of ProcessWire pages, all children of the same parent page? thank you for the support!
×
×
  • Create New...