#1 Developer Help » Content Alerts Not Saving - 302 Response » January 8, 2016 8:04am

NickS
Replies: 1

On the /admin/users/edit/1/ screens for any user I seem to be unable to save "content alerts" settings. I edit the user and check the boxes, then save, but when I go back to edit they are all unchecked again.

In Chrome Dev tools I see a POST to /admin/users/update/ with a 302 header. (Below but I DELETED some of the session info for safety)

Request URL:http://www.theclevercup.com/admin/users/update/
Request Method:POST
Status Code:302 Found
Remote Address:104.28.26.9:80
Response Headers
view source
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
CF-RAY: DELETED
Connection:keep-alive
Content-Type:text/html; charset=utf-8
Date:Fri, 08 Jan 2016 12:56:17 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Location:http://www.theclevercup.com/admin/users/
Pragma:no-cache
Server:cloudflare-nginx
Transfer-Encoding:chunked
X-Frame-Options:SAMEORIGIN
Request Headers
view source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8,es;q=0.6
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:396
Content-Type:application/x-www-form-urlencoded
Cookie:__cfduid=DELTED; PHPSESSID=DELTED; bigtree_admin[emaiI]=DELTED%40gmail.com; hide_bigtree_bar=; _ga=DELETED ; bigtree_admin[login]=%5B%22session-DELTED%22%2C%22chain-DELTED%22%5D
Host:www.theclevercup.com
Origin:http://www.theclevercup.com
Referer:http://www.theclevercup.com/admin/users/edit/1/
Upgrade-Insecure-Requests:1
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
Form Data
view source
view URL encoded
id:1
emaiI:DELETED @gmail.com
password:
name:Nicholas
company:Home
daily_digest:on
permissions:{"Page":null,"Module":{"1":"p","2":"p","4":"p","5":"p","6":"p","7":"p","10":"p"},"ModuleGBP":{},"Resource":null}
alerts:{"0":{},"undefined":"on"}


Exploring the database I see this saved into the alerts field for the user

{
    "0": [

    ],
    "undefined": "on"
}

#2 Re: Developer Help » Cron.php giving fatal error when executing on CLI » December 15, 2015 9:58pm

YES! That was it, the PHP CLI was pointing to its own php.ini file, once I adjusted that to have short_tag_open = on there were no more errors.

THANK YOU!

#3 Developer Help » Cron.php giving fatal error when executing on CLI » December 15, 2015 9:21am

NickS
Replies: 2

I am trying to get my cron.php to run, for a while PHP would only read the contents of the file back to me. I modified the cron.php to have it start with "<?php" instead of the short tag "<?" and that finally got it to run the script. Now I get a "fatal error: Class "BigTreeAdmin" not found on line 7" error.

PHP is 5.5.9-ubuntu4.14 (cli) and in my php.ini "short_tag_open = on" is in my settings so I don't know why the short tag was the initial problem. I also chmod the cron.php to 755 so it has execute permissions. Could this be file permissions problem with the included file that has the class BigTreeAdmin?

#4 Re: Bug Reports » Pending Changes Edit Button not working » September 17, 2014 10:05am

I'll post issues to github in the future since that seems the preferred location - Thanks Tim

#6 Bug Reports » Pending Changes Edit Button not working » September 16, 2014 11:47am

NickS
Replies: 5

When a pending edit to a Module is waiting to be approved in the Dashboard > Pending Changes the edit icon seems to just refresh the page and add a "/1" onto the current URL. With each click the page seems to just tack on another "/1" and does not go to an edit form.

I also tested this out on the demo site and it has the same bug as my local installation
http://demo.bigtreecms.org/admin/dashbo … ges/1/1/1/

Steps to produce bug:
Edit a Module and click "Save"
On Dashboard > Pending Changes click "Edit" icon
Result: Page refreshes with a /1 tacked onto the URL.

HTML for the edit button is different than all the others:
<section class="changes_action"><a href="1/" class="icon_edit"></a></section>
<section class="changes_action"><a href="#2" data-module="Trees" class="icon_approve icon_approve_on"></a></section>
<section class="changes_action"><a href="#2" data-module="Trees" class="icon_deny"></a></section>

#7 Feature Requests » User Tags or Groups » September 16, 2014 11:26am

NickS
Replies: 1

I would find it helpful to be able to assign users either to a Group or apply Tag(s) to each user. Not for permissions but when crafting messages in the message center it would be nice to mail all the "Billing Department"  or message all the "Developers".

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.