# All web pages return http 500 not sure why

**URL:** https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945
**Category:** Hosting Support
**Created:** [November 28, 2022, 2:02pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945 "2022-11-28T14:02:17Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![anon14276620](https://forum.infinityfree.com/letter_avatar/anon14276620/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon14276620](https://forum.infinityfree.com/u/anon14276620)
#### Post date: [December 2, 2022, 7:55pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/44 "2022-12-02T19:55:51Z")

</div>

well has no errors but **base64file** 1 and **base64file2** are still ‘undefined’ in my java script on F12 console ,I have had enough today cant move this on as its syntax correct. But does not provide expected results of base64 code like it did on my other server idk why?

```auto
const toDataURL = url => fetch(url)
  .then(response => response.blob())
  .then(blob => new Promise((resolve, reject) => {
    const reader = new FileReader()
    reader.onloadend = () => resolve(reader.result)
    reader.onerror = reject
    reader.readAsDataURL(blob)
  }))
    

var image = document.createElement("img");
    image.src = 'http://www.deniserose.epizy.com/images/nowplaying_artwork_2.png';

    var base64file1;
   
    toDataURL("/images/nowplaying_artwork_2.png", function(data) {
        then(dataUrl => console.log('RESULT:', dataUrl));
        base64file1 = dataUrl;
        });
    
    //var base64file2 = document.getElementById("outer_img").GetElementsById("np_track_artwork").src.data;
    var base64file2 = $("img#np_track_artwork").attr("src", "data:image/png;base64,"+data);

```

Hugs D

---

<div class="post-metadata">

### Author: ![EdwinTigor](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwintigor/32/28150_2.png) [@EdwinTigor](https://forum.infinityfree.com/u/EdwinTigor)
#### Post date: [December 3, 2022, 3:59am UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/45 "2022-12-03T03:59:47Z")

</div>

It works  
[http://viena.lovestoblog.com/imgEdit/r3.php](http://viena.lovestoblog.com/imgEdit/r3.php)

click imgClickMe then Process.  
need to add timer to check onchange.  
see you at fifa football time again tonight. 🙂

---

<div class="post-metadata">

### Author: ![anon14276620](https://forum.infinityfree.com/letter_avatar/anon14276620/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon14276620](https://forum.infinityfree.com/u/anon14276620)
#### Post date: [December 3, 2022, 6:53am UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/46 "2022-12-03T06:53:29Z")

</div>

Hi Edwin hmm , not with my code its still not forcing the upload of image through PHP fopen( either  
Am still noticing things like strlen( and other ‘c’ derivatives don’t work in php either its most odd

The only thing i have is from here a warning

1. Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform

2. A page or script is accessing at least one of `navigator.userAgent`, `navigator.appVersion`, and `navigator.platform`. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.

To fix this issue, replace the usage of `navigator.userAgent`, `navigator.appVersion`, and `navigator.platform` with feature detection, progressive enhancement, or migrate to `navigator.userAgentData`.

Note that for performance reasons, only the first access to one of the properties is shown.

1. AFFECTED RESOURCES

```
1. 1 source

  1. prototype.js:1

```

1. 
  - Learn more: User-Agent String Reduction

---

<div class="post-metadata">

### Author: ![anon14276620](https://forum.infinityfree.com/letter_avatar/anon14276620/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon14276620](https://forum.infinityfree.com/u/anon14276620)
#### Post date: [December 3, 2022, 7:53am UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/47 "2022-12-03T07:53:04Z")

</div>

Google Chrome seems to be going through some depreciation again I fixed this last time by going from Navigator.AppAgent to Navigator.userAgentData but it seems we are loosing that too maybe ? There is not much information currently about this new issue is there any information out there as this prototype.js file is no longer being updated from 1.7.3 that i have located ?

---

<div class="post-metadata">

### Author: ![anon14276620](https://forum.infinityfree.com/letter_avatar/anon14276620/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon14276620](https://forum.infinityfree.com/u/anon14276620)
#### Post date: [December 3, 2022, 8:13am UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/48 "2022-12-03T08:13:16Z")

</div>

One other thing to note when i refresh my website it does not bring in current image any more [http://www.deniserose.epizy.com/music\_now\_playing.php](http://www.deniserose.epizy.com/music_now_playing.php)

---

<div class="post-metadata">

### Author: ![anon14276620](https://forum.infinityfree.com/letter_avatar/anon14276620/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon14276620](https://forum.infinityfree.com/u/anon14276620)
#### Post date: [December 3, 2022, 9:18am UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/49 "2022-12-03T09:18:55Z")

</div>

oddly if i delete the image

 ![](https://forum-cdn.infinityfree.net/original/3X/b/5/b5f40d36a379f450946defad047f3ea79fc09b12.png)

Then refresh page it still stays there

 ![](https://forum-cdn.infinityfree.net/original/3X/e/c/ec3748910165f788ede6820b8f11fc17a3fdd70c.png)

What on earth is going on ?

---

<div class="post-metadata">

### Author: ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)
#### Post date: [December 3, 2022, 11:44am UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/50 "2022-12-03T11:44:31Z")

</div>

> [@anon14276620](#):
>
> What on earth is going on ?

I’m pretty sure that this is what’s going on:

> [@Images not writing with my routines](https://forum.infinityfree.com/t/images-not-writing-with-my-routines/69122/3):
>
> Could you please double check the file that’s actually being stored? Our hosting sends quite aggressive caching headers by default, so it’s possible that your image may have been updated in the background, but your browser just isn’t loading it. If this is the case, you can bypass the cache by adding a query parameter to the URL (like nowplaying\_artwork\_2.png?version=latest), which bypasses the cache.

Also, please don’t discuss the same issue in multiple topics, because (as you’re seeing here) it’s very easy for important information to get lost and waste everyone’s time.

Please pick one topic to discuss this issue and keep all the talk in that topic.

---

<div class="post-metadata">

### Author: ![anon14276620](https://forum.infinityfree.com/letter_avatar/anon14276620/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon14276620](https://forum.infinityfree.com/u/anon14276620)
#### Post date: [December 3, 2022, 6:12pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/51 "2022-12-03T18:12:49Z")

</div>

iwas using “\<img id=#np\_track\_artwork src=/images/nowplaying\_artwork\_2.png?t=”+$time+" alt=‘Playing track artwork’ width=200 height=200\>" do you suggest i try with version not t?

---

<div class="post-metadata">

### Author: ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)
#### Post date: [December 4, 2022, 9:49am UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/53 "2022-12-04T09:49:32Z")

</div>

No, that should be fine.

Are the images still not being updated with the time suffix?

---

<div class="post-metadata">

### Author: ![anon14276620](https://forum.infinityfree.com/letter_avatar/anon14276620/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon14276620](https://forum.infinityfree.com/u/anon14276620)
#### Post date: [December 4, 2022, 1:38pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/54 "2022-12-04T13:38:51Z")

</div>

Admin yes the refresh on the page has time stamp too.

Wacky I cant write all images to disk on fly as the website is currently not letting my fwrite( from php so am stuck trying to blob them

---

<div class="post-metadata">

### Author: ![EdwinTigor](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwintigor/32/28150_2.png) [@EdwinTigor](https://forum.infinityfree.com/u/EdwinTigor)
#### Post date: [December 4, 2022, 2:57pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/55 "2022-12-04T14:57:35Z")

</div>

> [@anon14276620](#):
>
> thanks Wacky but it doesn’t seem to be running AJAX even with the double quotes in place . I even tried placing it into the main php function
> 
> ```auto
> InitReload() {
> 
> new Ajax.PeriodicalUpdater("track_data", "fetch_sql.php", {
> method: "get", frequency: 10000, decay: 1});
> 
> }
> 
> ```
> 
> It doesn’t seem to want to run it any ideas ?  
> As its not running here either on main page ?  
> Am not getting any loads in the F12 debugger either .

Here it is. Maybe can activate it. or replace with basic ajax timer. because the reverse probs. Need to findout handler for image base64.

---

<div class="post-metadata">

### Author: ![anon14276620](https://forum.infinityfree.com/letter_avatar/anon14276620/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon14276620](https://forum.infinityfree.com/u/anon14276620)
#### Post date: [December 4, 2022, 3:26pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/56 "2022-12-04T15:26:06Z")

</div>

its activated and fires the fetch wacky and Edwin but doesn’t get base64 data back from images so does nothing

---

<div class="post-metadata">

### Author: ![anon14276620](https://forum.infinityfree.com/letter_avatar/anon14276620/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon14276620](https://forum.infinityfree.com/u/anon14276620)
#### Post date: [December 4, 2022, 3:30pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/57 "2022-12-04T15:30:09Z")

</div>

am now getting this  
**Notice** : Undefined variable: servername in **/home/vol1\_2/epizy.com/epiz\_33087480/htdocs/create\_artist\_div2.php** on line **103**

**Notice** : Undefined variable: dbname in **/home/vol1\_2/epizy.com/epiz\_33087480/htdocs/create\_artist\_div2.php** on line **103**

**Notice** : Undefined variable: username in **/home/vol1\_2/epizy.com/epiz\_33087480/htdocs/create\_artist\_div2.php** on line **103**

**Notice** : Undefined variable: password in **/home/vol1\_2/epizy.com/epiz\_33087480/htdocs/create\_artist\_div2.php** on line **103**

for

```auto
103 $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);

```

---

<div class="post-metadata">

### Author: ![EdwinTigor](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwintigor/32/28150_2.png) [@EdwinTigor](https://forum.infinityfree.com/u/EdwinTigor)
#### Post date: [December 4, 2022, 4:04pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/58 "2022-12-04T16:04:17Z")

</div>

I focused to get base64 first.  
so i do myway get decay func.

here it is looks like decay on old javascript:

[https://viena.lovestoblog.com/imgEdit/timer.php](https://viena.lovestoblog.com/imgEdit/timer.php)

---

<div class="post-metadata">

### Author: ![EdwinTigor](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwintigor/32/28150_2.png) [@EdwinTigor](https://forum.infinityfree.com/u/EdwinTigor)
#### Post date: [December 4, 2022, 4:05pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/59 "2022-12-04T16:05:28Z")

</div>

> [@anon14276620](#):
>
> am now getting this  
> **Notice** : Undefined variable: servername in **/home/vol1\_2/epizy.com/epiz\_33087480/htdocs/create\_artist\_div2.php** on line **103**
> 
> **Notice** : Undefined variable: dbname in **/home/vol1\_2/epizy.com/epiz\_33087480/htdocs/create\_artist\_div2.php** on line **103**
> 
> **Notice** : Undefined variable: username in **/home/vol1\_2/epizy.com/epiz\_33087480/htdocs/create\_artist\_div2.php** on line **103**
> 
> **Notice** : Undefined variable: password in **/home/vol1\_2/epizy.com/epiz\_33087480/htdocs/create\_artist\_div2.php** on line **103**
> 
> for
> 
> ```auto
> 103 $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
> 
> ```

You need to define it then.  
before line 103 define thoze 4 params variables.

```auto
    $servername = 'xxxxxx';
    $dbname = 'xxxxxx';
    $username = 'xxxxxx';
    $password = 'xxxxxx';

```

---

<div class="post-metadata">

### Author: ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)
#### Post date: [December 4, 2022, 4:29pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/60 "2022-12-04T16:29:50Z")

</div>

I don’t know what you are suggesting @EdwinTigor , but you are messing things up that were working originally.

@anon14276620, I would put your SQL code back the way you had it before. Then, since you have completely lost me, please paste your code, and any error messages you have, here.

Thanks

---

<div class="post-metadata">

### Author: ![EdwinTigor](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwintigor/32/28150_2.png) [@EdwinTigor](https://forum.infinityfree.com/u/EdwinTigor)
#### Post date: [December 4, 2022, 4:48pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/61 "2022-12-04T16:48:40Z")

</div>

she dont get her img base64 string.  
she cannot saving data. or she can but no data str64 to saved to.

---

<div class="post-metadata">

### Author: ![anon14276620](https://forum.infinityfree.com/letter_avatar/anon14276620/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon14276620](https://forum.infinityfree.com/u/anon14276620)
#### Post date: [December 4, 2022, 4:59pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/62 "2022-12-04T16:59:47Z")

</div>

Am also getting Error occurred:SQLSTATE[HY000] [1203] User epiz\_33087480 already has more than ‘max\_user\_connections’ active connections with $con=NULL is this not closing connection please in PDO?

Been working here [http://www.deniserose.epizy.com/my-music/](http://www.deniserose.epizy.com/my-music/)  
As the fetch doesnt work as it not getting base64 from images.

Hugs

---

<div class="post-metadata">

### Author: ![anon14276620](https://forum.infinityfree.com/letter_avatar/anon14276620/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon14276620](https://forum.infinityfree.com/u/anon14276620)
#### Post date: [December 4, 2022, 5:08pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/63 "2022-12-04T17:08:23Z")

</div>

> [@Greenreader9](#):
>
> I don’t know what you are suggesting @EdwinTigor , but you are messing things up that were working originally.
> 
> @DeniseR, I would put your SQL code back the way you had it before. Then, since you have completely lost me, please paste your code, and any error messages you have, here.

Hi Green

Yes it won’t read my image base64 from here js/fetch\_updater.js commented out line which didnt work in below

```auto
const toDataURL = url => fetch(url)
  .then(response => response.blob())
  .then(blob => new Promise((resolve, reject) => {
    const reader = new FileReader()
    reader.onloadend = () => resolve(reader.result)
    reader.onerror = reject
    reader.readAsDataURL(blob)
  }))

var image = document.createElement("#img999");
    image.src = 'http://www.deniserose.epizy.com/images/nowplaying_artwork_2.png';

    var base64file1;
    var base64file1 = $("img999").attr("src");
    /*toDataURL("/images/nowplaying_artwork_2.png", function(data) {
        then(dataUrl => console.log('RESULT:', dataUrl));
        base64file1 = dataUrl;
        });
    */
    image.remove();
    //base64file1 = base64_encode(base64file1);
    //var base64file2 = document.getElementById("outer_img").GetElementsById("np_track_artwork").src.data;
    //var base64file2 = $("img#np_track_artwork").attr("src", "data:image/png;base64,"+data);
    
    var base64file2 = $("#np_track_artwork").attr("src");

```

---

<div class="post-metadata">

### Author: ![EdwinTigor](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwintigor/32/28150_2.png) [@EdwinTigor](https://forum.infinityfree.com/u/EdwinTigor)
#### Post date: [December 4, 2022, 5:13pm UTC](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945/64 "2022-12-04T17:13:55Z")

</div>

I saw the post is solved “max\_user\_connections” pdo:

> [@I'm still confused on how to solve 'max\_user\_connections' problem](https://forum.infinityfree.com/t/im-still-confused-on-how-to-solve-max-user-connections-problem/68657/2):
>
> Thank you for the elaborate post! All the information you’ve provided really helps paint a clear picture for me as to what’s going on. Also, you seem to have a pretty good understanding of what’s going on, which helps a lot. I think I agree with the StackOverflow post you found. I didn’t know about the persistent option before, but it seems like it keeps the database connection alive even after the request ends. If I understand correctly how this option is implemented and works with Apache (c…

[Previous page](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945.md?page=2)

[Next page](https://forum.infinityfree.com/t/all-web-pages-return-http-500-not-sure-why/68945.md?page=4)
