Error in hesk

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
jessar94
Posts: 76
Joined: Sun Mar 16, 2014 7:54 pm

Error in hesk

Post 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
jessar94
Posts: 76
Joined: Sun Mar 16, 2014 7:54 pm

Re: Error in hesk

Post 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?
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Error in hesk

Post 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.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
jessar94
Posts: 76
Joined: Sun Mar 16, 2014 7:54 pm

Re: Error in hesk

Post 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
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Error in hesk

Post 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.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Post Reply