Page 1 of 1

Error in hesk

Posted: Mon Dec 21, 2015 9:38 pm
by jessar94
I use hesk for mods.

I have a modified index.php and it works fine on this test site

But not on this site.

Could it have to do with my test site run: Mods for HESK Version: 2.4.2
And my site on supportportalen.mobi use Mods for HESK Version: 2.5.2


When i use debug mode i got error:

Code: Select all

Warning: require(./modsForHesk_settings.inc.php): failed to open stream: No such file or directory in /storage/content/79/199979/supportportalen.mobi/public_html/index.php on line 39 

Warning: require(./modsForHesk_settings.inc.php): failed to open stream: No such file or directory in /storage/content/79/199979/supportportalen.mobi/public_html/index.php on line 39 Fatal error: require(): 

Failed opening required './modsForHesk_settings.inc.php' (include_path='.:/usr/local/php56/lib/php:/storage/content/79/199979/pear/php') in /storage/content/79/199979/supportportalen.mobi/public_html/index.php on line 39
orginal files from hesk mods

modified files

modsForHesk_settings.inc.php is in the map on my server and has permissions 644

Orginal site:https://dl.dropboxusercontent.com/u/422 ... al_pic.PNG

modified site:https://dl.dropboxusercontent.com/u/422 ... ed_pic.PNG

Re: Error in hesk

Posted: Mon Dec 21, 2015 11:18 pm
by jessar94
okey, i don't know what i did but it works now.

But if i set hesk mods in debug mode i get error:

Code: Select all

Notice: Undefined variable: my_email in /storage/content/79/199979/supportportalen.mobi/public_html/index.php on line 1090
the row in line 1090 is:

Code: Select all

<input type="text" class="form-control" name="e" id="emailAddress" size="35" value="<?php echo $my_email; ?>" placeholder="<?php echo $hesklang['email']; ?>"/>
What is wrong?

Re: Error in hesk

Posted: Tue Dec 22, 2015 1:12 am
by mkoch227
In 2.5.0 modsForHesk_settings.inc.php was removed in favor of saving settings directly to the database. I recommend that you simply reapply your mod to the official index.php, as I do not officially support modifications to Mods for HESK.

Re: Error in hesk

Posted: Sat Jan 02, 2016 2:21 am
by jessar94
mkoch227 wrote:In 2.5.0 modsForHesk_settings.inc.php was removed in favor of saving settings directly to the database. I recommend that you simply reapply your mod to the official index.php, as I do not officially support modifications to Mods for HESK.
Okey, how can i add a custom block to the index page?

Like this example:
Image

I found a folder named: custom and in this folder are custom-blocks.php

But if i put this code:

Code: Select all

<?php
}
include('custom/custom-blocks.php');				
?>
on the index page are nothing changed.

But if i use this custom index file, it works. I don't have modified this file. I got the file from someone else

Re: Error in hesk

Posted: Sat Jan 02, 2016 6:47 am
by mkoch227
I do not provide any type of support for the old layout. Additionally, custom-blocks.php was deprecated a few versions back when the block layout changed. An example row of blocks from 2.5.2 can be viewed at https://github.com/mkoch227/Mods-for-HE ... 1307-L1342.