The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
init.php - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Off-topic Discussions (https://userspice.com/forums/forumdisplay.php?fid=10)
+--- Thread: init.php (/showthread.php?tid=799)



init.php - dave3460 - 10-20-2017

Hi question to anyone that may know.

My domain host will not allow the change of group concat from 1024 to max.
so my question is i have tried adding to the init file to session the group concat but when i do it runs a 500 error code .
which way would be best to add this or just redesign the way i am doing group concat via my hosting.

Thanks in advance


init.php - mudmin - 10-20-2017

So the error 500 makes me think that you have error reporting turned off on your server so you're not getting a proper idea of what's wrong.
Add this starting at line 2 of your init.php
Code:
error_reporting(E_ALL);
Code:
ini_set('display_errors', 1);

In theory, that should give you a more specific error to see if your code is wrong. If your code seems right, try adding your concat thing to
Code:
usersc/includes/head_tags.php

That will get it into the header but after init has done its thing.