coppermine-gallery.com/forum

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: nineninefive on May 24, 2022, 11:32:37 PM

Title: passwords
Post by: nineninefive on May 24, 2022, 11:32:37 PM
Hi,

I have a gallery: kardashianworld.net/gallery

Every time I reset my password, it sends me the email etc, changes the password, but no matter what every time I put in new password, it says login failed.

I've tried changing the email addresses, I've tried changing on phpadmin but no luck. Any advice?
Title: Re: passwords
Post by: idosha on May 25, 2022, 09:51:44 PM
I am the server admin for this persons gallery. I can occasionally get the passwords to work for the update.php script but they never seem to work to login to the actual gallery.

The database is just over 300 MB - The main gallery page loads horribly slow, http://kardashianworld.net/gallery/
while most other pages on the gallery load quickly. http://kardashianworld.net/gallery/index.php?cat=639

My theory is something related to the database is causing the slow loading issue along with the password issue. Hopefully Ron or someone else has ran into this sort of problem before. As I am out of ideas on how to fix.

Currently my only guess to fix it is a more powerful server or splitting the gallery into multiple galleries to avoid the large database size.
Title: Re: passwords
Post by: idosha on May 25, 2022, 10:38:21 PM
We got the passwords working, but the slow loading is an on-going issue. Here is a copy of my debug. I see where it's extremely slow but I don't know what we can do to fix it. No other galleries on our server are having this issue.

ORDER BY NULL [index.php:362] (73013.31 ms)
LIMIT 0 ,7 [include/functions.inc.php:1971] (34741.23 ms)


FULL DEBUG

USER:
------------------
Array
(
    [ID] => c40414937cd212dc10ab6f3a11b08d33
    [am] => 1
    [lang] => english
    [liv_a] => Array
        (
           
Title: Re: passwords
Post by: ron4mac on May 26, 2022, 12:50:45 AM
Are you using PHP 7 or later?
Is CPG using the mysqli API to access the database?
Is PHP allowed plenty of memory for processes (512M)?
Have you tried optimizing the tables (https://dev.mysql.com/doc/refman/5.7/en/optimize-table.html)?
Title: Re: passwords
Post by: idosha on May 26, 2022, 04:29:43 AM
PHP 7.4
$CONFIG['dbtype'] =      'mysqli';         // Your database type
PHP memory limit is 500 MB -- I am increasing to 900 MB for now to see if that helps.
Our database uses InnoDB, I used optimize in phpmyadmin after changing the this setting in the link you provided: innodb_optimize_fulltext_only=1

It may have improved slightly, but it's still taking 11 seconds to load the main page while other pages load much quicker. Why is it only the main album list page loading slowly?


USER:
------------------
Array
(
    [ID] => c40414937cd212dc10ab6f3a11b08d33
    [am] => 1
    [lang] => english
    [liv_a] => Array
        (
           
Title: Re: passwords
Post by: ron4mac on May 26, 2022, 01:51:03 PM
You haven't provided any history about the situation. Was it functioning more smoothly with so many categories and albums at one point and then suddenly got very slow? Are the other galleries that you mentioned as large as this one, yet have decent performance?

Suggestions:
You can remove 'lastalb' from what is displayed on the home page.
Or if it is mainly a public facing gallery with no login, you can use my theme caching plugin (https://forum.coppermine-gallery.net/index.php/topic,80231.msg388275.html#msg388275). (which I see you have used before)
Title: Re: passwords
Post by: idosha on May 27, 2022, 12:28:08 AM
It's been getting worst over the last year or two.  It didn't suddenly occur. The next largest account on our server has 550k photos and it doesn't have loading issues like this site. This gallery is over 1 million.

I've turned off everything on the front page except breadcrumb and album list and it still has the issues. Is it possible to turn off the photo count #'s and only display links to albums? It's got to be something causing the long SQL delays that is mostly related to the front page. That is the only thing the front page has that the subpages don't.

I highly doubt my client can afford a dedicated server, so what can we do to modify coppermine's main page? I've tried the cache plugin and it doesn't seem to help.
Title: Re: passwords
Post by: ron4mac on May 27, 2022, 04:31:20 AM
I have a hard time believing the theme cache plugin didn't help a great deal. Could you please install/enable it again so that I can see the results. Please tell me which theme(s) it is enabled for ... remember there must be a 'cache' folder in the theme directory. For only non-logged in use, after the home page is visited once, the next visit should be fast (within the cache expiration time).
Title: Re: passwords
Post by: idosha on May 27, 2022, 10:57:04 AM
I installed the 1.0 version of theme cache and it doesn't seem to be generating any files in the cache folder so I assume it is not working. I tested it on the default theme and the custom theme. The cache folder is chmod 755, I also tried it at 777 with no luck. Plugin enabled and set to 24 hours.
Title: Re: passwords
Post by: idosha on May 27, 2022, 11:13:44 AM
A file finally showed up in the cache folder, but I can't seem to get a cached page served to me as I am searching the source code for your CACHED hidden comment and cannot locate. I have logged out.
Title: Re: passwords
Post by: idosha on May 27, 2022, 11:17:32 AM
This is what is inside the temp file that did generate, it doesn't seem complete.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Pragma" content="no-cache" />
<title>Last additions - Kardashian World</title>

<link rel="stylesheet" href="css/coppermine.css" type="text/css" />
<link rel="stylesheet" href="themes/GD_KardashCPGv2/style.css" type="text/css" />
<link rel="shortcut icon" href="/wp-content/themes/GD_KardashWPv2/images/ico.png" />
<script type="text/javascript">
/* <![CDATA[ */
    var js_vars = {"site_url":"http:\/\/kardashianworld.net\/gallery","debug":false,"icon_dir":"images\/icons\/","lang_close":"Close","icon_close_path":"images\/icons\/close.png"};
/* ]]> */
</script>
<script type="text/javascript" src="js/jquery-1.12.4.js"></script>

<script type="text/javascript" src="js/jquery-migrate-1.4.1.js"></script>

<script type="text/javascript" src="js/scripts.js"></script>

<script type="text/javascript" src="js/jquery.greybox.js"></script>

<script type="text/javascript" src="js/jquery.elastic.js"></script>



<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">

<link href='https://fonts.googleapis.com/css?family=Playfair+Display:400,400italic,700,700italic|Source+Sans+Pro:400,300,300italic,400italic,700,700italic|Oswald:400,700,300|Lato:400,400italic,700,700italic' rel='stylesheet' type='text/css'>




<script>
$(document).ready(function() {
  $('body').addClass('js');
  var $menu = $('#menu'),
    $menulink = $('.menu-link');
 
$menulink.click(function() {
  $menulink.toggleClass('active');
  $menu.toggleClass('active');
  return false;
});});
</script>

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: "ca-pub-2251721893274244",
          enable_page_level_ads: true
     });
</script>

</head>

<div class="wrapper">
<div id="navigation">
<div align="center">
<a href="#menu" class="menu-link"><i class="fa fa-bars"></i></a>
<nav id="menu" role="navigation"><ul>
   <li><a class="homepage" href="/">Home</a></li>
   <li><a href="/kuwtk">KUWTK</a></li>
   <li><a href="/about">About</a></li>
   <li><a href="/gallery">Photo Gallery</a></li>
   <li><a href="/interview-archive">Press Archive</a></li>
   <li><a href="http://twitter.com/KUWTKWorld/"><i class="fa fa-twitter"></i></a></li>
</ul></nav>
</div>
</div> </div>


  <div id="header">
</div>

<!-- start new FFH Google adcode -->

<br />



<!-- Google Auto-ads -->

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<script>

     (adsbygoogle = window.adsbygoogle || []).push({

          google_ad_client: "ca-pub-2251721893274244",

          enable_page_level_ads: true

     });

</script>

<!-- End Google Auto-ads -->

<center>



<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<!-- responsive-horizontal -->

<ins class="adsbygoogle"

     style="display:block"

     data-ad-client="ca-pub-2251721893274244"

     data-ad-slot="9360852998"

     data-ad-format="auto"

     data-full-width-responsive="true"></ins>

<script>

     (adsbygoogle = window.adsbygoogle || []).push({});

</script>



</center>

<br />



  <!-- FFH Ad Tracking code - shows stats for all sites combined-->

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-36190990-2"></script>

<script>

  window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

  gtag('js', new Date());



  gtag('config', 'UA-36190990-2');

</script>

<!-- FFH Network Tracking Code  - Shows what sites have ads-->

<script src="https://freefansitehosting.com/ads/track.js"></script>





<!-- end new FFH adcode -->

<body class=body><div id="container">


<div class="navigal" style="margin-bottom:5px;padding:5px;">
<center>                        <!-- BEGIN home -->
        <a href="index.php" title="Go to the home page" >Home</a> ::
  <!-- END home -->                    <!-- BEGIN login -->
        <a href="login.php?referer=thumbnails.php%3Falbum%3Dlastupby%26cat%3D0%26uid%3D1%26page%3D9732" title="Log me in" >Login</a>
  <!-- END login -->   
</center> </div>




<div style="height: 10px;"></div>

<center>


  <table width="950" border="0" cellpadding="5" cellspacing="5">
    <tr>
      <td valign="top">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top">
             


<div style="height: 10px;"></div>
Title: Re: passwords
Post by: ron4mac on May 27, 2022, 02:25:16 PM
I don't think there is any more help that I can provide without getting access to your server.