View Issue Details

IDProjectCategoryView StatusLast Update
0018758phpList 3 applicationConfigurationpublic02-07-18 20:19
Reportersamtuke 
PrioritynormalSeverityminorReproducibilityhave not tried
Status feedbackResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0018758: Settings page shows incorrect subscribe/unsubscribe URLs
DescriptionWith both $pageroot and $adminpages set in config.php, the settings page shows an old full path to subscribe and unsubscribe URLs. It is unclear where the paths displayed originate from; they are not stored in any value of the phplist_config table. The URLs stated on the settings page are not used in footer links in sent campaigns (the path ststed in $pageroot is used instead). The paths on the settings page depicted in the screenshot should be the same as the URL of the page (http://thinkingfree.org/pl332/?p=subscribe).

Therefore an incorrect set of paths is being stated on the settings page.
Additional InformationThe result of the following SQL query is bare domains with no paths/directories for both (e.g. 'thinkingfree.org').
TagsNo tags attached.

Activities

samtuke

03-07-17 12:37

administrator  

Screenshot from 2017-07-03 14-30-05.png (421,505 bytes)

samtuke

03-07-17 12:50

administrator   ~0059200

Correction: the lt.php links in campaign footers are correct, but the URL they redirect to does indeed use the incorrect links stated on the settings page. Where are those URLs stored?

duncanc

03-07-17 13:09

updater   ~0059201

The URLs are in the config table, e.g. item = unsubscribeurl.

But those URLs are derived only once, I guess on phplist initialisation, using the initial value of $pageroot. If you later change $pageroot then those URLs are not changed.

samtuke

04-07-17 11:02

administrator   ~0059202

The incorrect URL is not stored in that table -- the value of unsubscribeurl is "http://thinkingfree.org/lists/?p=unsubscribe", but the url actually used in campaigns is http://thinkingfree.org/pl33rc4/?p=unsubscribe. It is not clear where the url is being retrieved from. Logging out and in did not affect this (it doesn't appear to be session-based).

duncanc

04-07-17 11:45

updater   ~0059203

If you edit one of those fields on the Settings page, how does it appear? Possibly you still have the old value of pageroot within the Website value. See my screenshot

duncanc

04-07-17 11:45

updater  

samtuke

04-07-17 12:10

administrator   ~0059204

When I edit one of the fields, it appears like this:

http://[WEBSITE]/pl33rc4/?p=subscribe

I ran a query looking for any values containing pl33rc4 in the phplist_config table, but none were found. There is also no reference to it in the config file, so it must be stored elsewhere in the database or on-disk, but I'm not sure where.

michiel

11-06-18 21:28

manager   ~0060716


The value is initialised here: https://github.com/phpList/phplist3/blob/master/public_html/lists/admin/defaultconfig.php#L277

after that, it is configured however you tell it to, but the domain is replace with [WEBSITE]

The pl33rc4 should be in the database.

samtuke

02-07-18 12:37

administrator   ~0060821

@michiel If 'pl33rc4' is not stored in the phplist_config table, can you think which other table it might be in?

michiel

02-07-18 19:40

manager   ~0060827

No idea. I think it should be in the config table. Can't think where else it would be.

duncanc

02-07-18 20:19

updater   ~0060830

The values in the config table for subscribeurl and for unsubscribeurl should match the fields on the Settings page.