Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archive] ajw_admin_workflow

#16 2005-09-08 16:20:08

Joey
Member
From: Netherlands
Registered: 2005-01-19
Posts: 257

Re: [archive] ajw_admin_workflow

Thanks Andrew for the info and the fix :) Working good now:)


Regards,

Joey

Offline

#17 2005-10-31 02:16:25

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: [archive] ajw_admin_workflow

Can you make this work with Freelancers also? So that if the ownership is transferred to a freelancer, they can edit the article?

Thanks


bludrop studios .::. Creative Expression

Offline

#18 2005-11-08 05:18:40

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archive] ajw_admin_workflow

It shouldn’t have anything to do with permission level; as long as the user has authored the article and is able to edit articles, that user will be able to transfer the ownership. This should be determined by your site’s preferences, located within (for now, at least) admin_config.php. Check to see that you haven’t restricted Freelancers from editing or publishing.

Offline

#19 2005-11-08 05:22:28

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: [archive] ajw_admin_workflow

Yes, I finally realized that I should check admin_config.php (I thought it died already, but I guess not quite yet…). I did and I edited permissions and it works.

Thanks for your response, though.


bludrop studios .::. Creative Expression

Offline

#20 2005-12-09 22:54:13

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archive] ajw_admin_workflow

Andrew, I’m getting the following error on a 4.02 site….

Notice: Undefined index: view in /users/home/farrah/web/public/textpattern/lib/txplib_misc.php(455) : eval()’d code on line 24

any clues as to how I can make it go bye bye?

Thanks! Jamie

Offline

#21 2005-12-10 17:22:26

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archive] ajw_admin_workflow

Are you sure that is related to this plugin? There is a $view variable used in this plugin, but it is initialized properly so will never throw a notice.

Offline

#22 2005-12-10 17:23:46

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archive] ajw_admin_workflow

Also, if you are sure it is being caused by ajw_admin_workflow, can you tell me how to reproduce it?

Offline

#23 2005-12-10 18:16:59

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archive] ajw_admin_workflow

I just started getting it on after installing the plugin on a site i am slowly turning over to a client. I installed it yesterday and started getting the error/warning. I only get it for the page refresh just after transfering ownership of the article. I seems to effect nothing. As soon as the transfer is complete and I refresh the screen or leave and come back to the article that was transfered the error/warning goes away. The transfers complete just fine – as far as I can tell. The client has said nothing to me as yet so I am assuming that they are going through fine. It’s really not a critical thing. I just thought I should alert the person in charge (you) :)

Thanks!
Jamie

Offline

#24 2005-12-10 18:39:41

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archive] ajw_admin_workflow

I’ve attempted with all error reporting cranked up on both v4.0.2 and the development versions of Textpattern to reproduce the error, without luck. Perhaps another plugin also uses $_GET['view'] and is unsetting the value?

The textpattern lib gps() function does an isset() check to prevent the possibility of an undefined index notice. Also, there is only one place in which the $view variable is referenced in ajw_admin_workflow, and it directly follows the variable initialization:

   $view = gps('view');
  [...]
if ($view!='html' && $view!='preview') {

So I really don’t see how it’s possible. What other admin plugins do you have active? Do any of them use the ‘view’ querystring variable?

Offline

#25 2005-12-10 18:48:02

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archive] ajw_admin_workflow

On the “write” the two other plugins that are activated are upm quicktags and bas_image selector. Hold on let me try something….

Offline

#26 2005-12-10 18:55:01

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archive] ajw_admin_workflow

It’s the damndest thing. Here’s a screen if that tells you anything. I disabled any other plugs and still getting the warning.

Offline

#27 2005-12-10 18:57:22

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archive] ajw_admin_workflow

Crank up error reporting by setting production status to ‘debugging’, then try it again. Any additional clues?

Offline

#28 2005-12-10 19:03:56

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archive] ajw_admin_workflow

Nothing additional with debugging mode turned on. And no other errors on any other admin screens as far as I can see thus far. Sorry that’s not much help. Maybe it’s just a ghost in the machine on burnaby if it’s only effecting this site? Like I said I have this running on several installs on several boxes and have never seen any errors creep up on any of them until now. I don’t see any reason why this would effect the funtionality. i looked at the sql table and everyting is being transfered correctly. So I am back to baffled. How about you? I will chalk this up to gremlin I guess.

Offline

#29 2005-12-10 19:09:25

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [archive] ajw_admin_workflow

Well, since it is just a php “notice” there’s nothing to worry about. Try putting an @ before the reference to gps('view') in the ajw_admin_workflow source and then we can verify it is in fact the plugin. Modify the line I posted before to this:

$view = @gps('view');

Does that do away with the php notice?

Last edited by Andrew (2005-12-10 19:10:54)

Offline

#30 2005-12-10 19:37:43

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archive] ajw_admin_workflow

<code>function ajw_admin_workflow($event, $step) { global $txp_user; $confirm = ‘’; // get posted variables $view = @gps(‘view’); $name = gps(‘workflow_id’); $id = gps(‘ID’); $req = array(‘1’,‘2’); // privilege levels with power access</code>

Changes nothing as far as the notice goes. Hmmm.

Offline

  1. Index
  2. » Archives
  3. » [archive] ajw_admin_workflow

Board footer

Powered by FluxBB