issues with http and https issues with http and https
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

issues with http and https

Started by Hanna., October 31, 2018, 03:01:36 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Hanna.

Hi all! I need some quick assistance. It might be a quick fix but I cannot find it.

So, in the middle of uploading pictures in my new gallery, I got logged out and the settings were pointed to http - and my host upgraded to https. Now the URL directly goes to https (which is fine) but I cannot login as admin.

It simply gives me a blank page and I am guessing it is because the settings in admin.php at this point are to http.

How can I get to login/admin to point the http to https or is there any back door to just have  me login admin and change the URL settings in there...?

Αndré

I wonder how you logged in before? The setting "URL of your Coppermine gallery folder" (which you're probably talking about) doesn't affect the login.

Hanna.

Quote from: Αndré on October 31, 2018, 03:22:49 PM
I wonder how you logged in before? The setting "URL of your Coppermine gallery folder" (which you're probably talking about) doesn't affect the login.

I was logged in great once installed, but then there was an SSL added and my site automatically went blank when trying to read log in page... I don't think I ever logged out actually but then my cache was cleared and my website was at https instead of http.

Αndré

Quote from: Αndré on October 31, 2018, 03:22:49 PM
The setting "URL of your Coppermine gallery folder" (which you're probably talking about) doesn't affect the login.
If you want to test anyway, you have to access your MySQL database with a tool like phpMyAdmin, open the config table and search for the row "ecards_more_pic_target".

Have you tested a different browser? Do you have a test user account (no admin account!), so we can test ourselves? If not and you agree, I'll send you my contact via PN so you can give me your admin login data.

Hanna.

Quote from: Αndré on October 31, 2018, 04:18:15 PM
If you want to test anyway, you have to access your MySQL database with a tool like phpMyAdmin, open the config table and search for the row "ecards_more_pic_target".

Have you tested a different browser? Do you have a test user account (no admin account!), so we can test ourselves? If not and you agree, I'll send you my contact via PN so you can give me your admin login data.

sent you PM. Thank you André.

Αndré

According to the timestamp on your server, the file include/functions.inc.php has been modified 2.5 hours ago. The function cpg_get_user_data was missing, that's why you couldn't login. I restored the file with a clean copy and I now get an error message (as expected) when submitting wrong credentials. You need to re-apply any mods to that file, if applicable.

Hanna.

Thank you for figuring that out so quickly. However, I use that exact same functions file with my other galleries (ex - www.kristindaily.org, www.rachelbilson.us) and never had an issue. The specific add to that functions is the dimensions to be shown under the thumbnails. Why is that though? And I host them all from my own/same server.

Αndré

If the function is also missing in the other files, you'll get the same issue when you try to login. If you there's no issue, it's not the same file (or you use another Coppermine version where that function doesn't exist in include/functions.inc.php.

Hanna.

Quote from: Αndré on November 03, 2018, 01:29:05 PM
If the function is also missing in the other files, you'll get the same issue when you try to login. If you there's no issue, it's not the same file (or you use another Coppermine version where that function doesn't exist in include/functions.inc.php.

That is correct. The new gallery has 1.6.04 and my other ones have 1.6.03. I need this part from version 3 to 4: -- I just tried adding it but again it interupts the entire function frame on my gallery:

if (in_array('ctime', $must_have)) {
            $caption .= '<span class="thumb_caption thumb_caption_ctime">' . localised_date($row['ctime'], $lang_date['lastup']) . '</span>';
        }


$caption .= '<span class="thumb_dimensions">' . $rowset[$key]['pwidth'] . " x " . $rowset[$key]['pheight'] . '</span>';
$rowset[$key]['caption_text'] = $caption;

        if ($CONFIG['caption_in_thumbview'] && !empty($row['caption'])) {
            $caption .= '<span class="thumb_caption thumb_caption_caption">' . strip_tags(bb_decode($row['caption'])) . '</span>';


Where would you recommed to put it so it works without interruption?
       

Αndré

Please post more details where you have it added now, or even better, attach your modified functions.inc.php file.

Hanna.

Here we go. Version 1.6.03. Line 1158.

ron4mac

@hanna
I'll have a plugin for you within a day from now (see post time) that will do that for you so you don't have to modify a core file.

ron4mac

#12
Here is a quick and dirty beginning for a plugin to add image properties to a thumbnail. I plan to develop it more, adding significant versatility. You configure it with HTML sprinkled with image property substitutions. You should get the drift if you look at the plugin config.

Hanna.

That is the best news yet!!! I have been waiting so long for something like this, thank you so much! I just installed it - and it works great!

Hanna.

Quote from: ron4mac on November 04, 2018, 08:01:09 PM
Here is a quick and dirty beginning for a plugin to add image properties to a thumbnail. I plan to develop it more, adding significant versatility. You configure it with HTML sprinkled with image property substitutions. You should get the drift if you look at the plugin config.

where can I follow updates on this?

ron4mac

Quote from: Hanna. on November 07, 2018, 02:08:53 PM
where can I follow updates on this?
When it's more than something quickly put together for you, I'll post it in the appropriate places and let you know about it.

Hanna.

Quote from: ron4mac on November 07, 2018, 03:18:47 PM
When it's more than something quickly put together for you, I'll post it in the appropriate places and let you know about it.

Ok, for now though, could you just quickly add here what the attribute is for views and then for date added (what do the {} look like for those?)

ron4mac

Quote from: Hanna. on November 07, 2018, 08:28:08 PM
Ok, for now though, could you just quickly add here what the attribute is for views and then for date added (what do the {} look like for those?)

For views: {hits}
For date: you can try {mtime} (although you won't like it)

I'll soon add some formatting for things, like date, that don't display well in their raw format.

Hanna.

Quote from: ron4mac on November 08, 2018, 02:40:07 AM
For views: {hits}
For date: you can try {mtime} (although you won't like it)

I'll soon add some formatting for things, like date, that don't display well in their raw format.

Ok sounds good. Because the latest albums one is a bit tricky. It is included in this plugin, so now when I only choose size and views, i will need the name to the album but then the name will be added to random thumbnails as well, and the album names can be quite long. Anyhow thanks for the help, and hoping to see this feature/plugin getting developed! It is MUCH needed.