All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: When I send for approval, the edit entry redirects to my dev site (sub domain) not the live site (Pu

Status Resolved
Add-on / Version Publisher Lite Latest? order 192521 – Publisher Lite
Severity
EE Version v2.10.1

Kevin Nicholson

Apr 14, 2016


Description:
When I send for approval, the edit entry redirects to my dev site (sub domain) not the live site (Publisher Lite was installed on the dev site first)

Detailed steps to reproduce the issue:
1. I send for approval from the live site:

the edit entry link redirects to my dev site:

 

*** I have supplied FTP access to the dev site – the folder
Assuming if the cause is possible to spot here – I can apply to the live site myself – some setting which I have failed to implement most likely!

Thanks for your time Brian!

 

 

 

#1

Kevin Nicholson

Comment has been marked private.

#2

Kevin Nicholson

Comment has been marked private.

#3

BoldMinded (Brian)

Have you double checked your config files to make sure the site_url and cp_url values are set correctly in all environments?

#4

Kevin Nicholson

Comment has been marked private.

#5

Kevin Nicholson

Comment has been marked private.

#6

Kevin Nicholson

Comment has been marked private.

#7

Kevin Nicholson

Comment has been marked private.

#8

BoldMinded (Brian)

Sorry for the delayed response. My email delivery is messed up somewhere along the lines so I haven’t been getting notifications for a couple weeks. Publisher is using the native cp_url function, which looks at the cp_url config item, which defaults to the db, but then can be overwritten in your config file, e.g. $config[‘cp_url’] = ‘foo’;

#9

Kevin Nicholson

Comment has been marked private.

#10

BoldMinded (Brian)

I don’t know how their master config is setup. You’ll need to figure that one out yourself. I assume its whatever file is holding your production variables.

#11

Kevin Nicholson

Comment has been marked private.

#12

BoldMinded (Brian)

It shouldn’t affect current or newly saved content to change the url in the db. The approval script grabs the value from the config upon save and uses it in the email, so its separate from the content.

#13

Kevin Nicholson

Comment has been marked private.

#14

BoldMinded (Brian)

If you’re wanting to change it in the db you’ll just need to edit the settings and save it in the cp. If you want to change it in the db without editing the cp, then you’ll need to base64_decode(), then deserialize() the row in the exp_site table, edit, serialize(), then base64_encode() it again.

Its possible I’m not understanding what you’re trying to do?

#15

Kevin Nicholson

Comment has been marked private.

#16

BoldMinded (Brian)

It shouldn’t matter what is in the db b/c if its defined in the config file then that will override what is in the db. So if the dev and live config environments define the cp_url correctly, then Publisher should pick up on that and disregard what is set in the cp/db.

#17

Kevin Nicholson

Comment has been marked private.

#18

BoldMinded (Brian)

Try something like this:

$env_config[‘cp_url’] = ‘http://whatever.com’; $env_config[‘base_url’] . ‘http://somethingelse.com/admin.php’;

If that doesn’t work you may need to talk to Focus Lab b/c this seems more like a config issue than Publisher issue.

#19

Kevin Nicholson

Comment has been marked private.

#20

Kevin Nicholson

Comment has been marked private.

Login to reply