I need help with Smarty Error

Tagged: 

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #2088
    marvelbusiness
    Participant

    need some help. I am trying to upgrade to simple invoices 2019_2 and I get this error:

    Fatal error: Uncaught –> Smarty: Unable to load template ‘file:../custom/hooks.tpl’ in ‘file:templates/default/header.tpl’ <– thrown in
    …public_html/invoice/library/smarty/libs/sysplugins/smarty_internal_template.php on line 195

    The hook file exists in the said folder ..custom/hooks.tpl..How do I get past this error please?

    https://gofund.me/3d1318f9

    #2090
    RRowley
    Participant

    Please attach your tmp/log/si.log file.

    #2091
    marvelbusiness
    Participant

    The file is empty. See attached.

    #2092
    RRowley
    Participant

    My mistake. The php.log file should contain the error and more info.

    #2093
    marvelbusiness
    Participant

    Please see attached

    #2094
    RRowley
    Participant

    Try zipping the file then upload.

    #2095
    marvelbusiness
    Participant

    Please find attached. Thank you.

    Attachments:
    #2097
    RRowley
    Participant

    Ok. Your issue is that the si_cron_log table contains records with the “domain_id”, “cron_id” and “run_date” that are duplicates. You need to use your myPhpAdmin program to find the duplicates and correct them. The easiest correction is to delete the duplicate records. If these records are needed, record to dup info record values and after the conversion, add the record back via the Recurrence option in SI.

    #2098
    marvelbusiness
    Participant

    I have no records in si_cron_log. See attached image

    #2100
    marvelbusiness
    Participant

    Any further help on this please?

    #2101
    RRowley
    Participant

    I suggest you delete the php log file and try again. I expect the same error but it is worthwhile proving it. This is the error I expect in your log file:

    [15-Dec-2024 22:39:55 Europe/London] SqlPatchManager::runSqlPatch() – PdoDb – query(): Execute error. See error_log.
    [15-Dec-2024 22:40:08 Europe/London] PdoDb – debugger(): ALTER TABLE si_cron_log ADD UNIQUE INDEX CronIdUnq (domain_id, cron_id, run_date);
    [15-Dec-2024 22:40:08 Europe/London] PdoDb – query(): Execute error.Array
    (
    [0] => 23000
    [1] => 1062
    [2] => Duplicate entry ‘1-37-2018-10-01’ for key ‘CronIdUnq’

    If this is the same as the new error in the php log file, then call me crazy, but I don’t think the database you are accessing with phpMyAdmin is the same that is same as the one being accessed by SI. You would then need to verify the DB name in the custom.config.ini file. I say this because as you see in the Duplicate entry error message, it shows a record found with run_date, cron_id and domain_id message with as value of 1-37-2018, 10 and 01 respectively.

    #2102
    marvelbusiness
    Participant

    I now get the following error:

    Fatal error: Non-abstract method Inc\Claz\Config::init() must contain body in /public_html/invoice/Inc/Claz/Config.php on line 31

    Are the database params supposed to be the same in config.php and custom.config.php files?

    I also deleted the php.log file and another one has not been auto-populated.

    #2103
    RRowley
    Participant

    The config.ini file is a template only. The custom.config.ini file is where values are actually taken from. They do not need to be the same. Each time you access SI, the keywords in your custom file are compared to those in the template. If there are keywords in the template that aren’t in the custom file, the keyword and default value is copied to the custom file. And keywords in the custom file that aren’t in the template are flagged by surrounding them with comments. This way, changes to SI config file values automatically propagate to the custom file without altering the values in the custom file.

    As to the error you are getting for the non-abstract method, attach the new php.log file (zipped of course). Hopefully it contains a better description of what is going on.

    #2104
    marvelbusiness
    Participant

    I deleted the initial php.log file and I have created another one but nothing seems to be written into it when the error appears on the invoice url.

    #2105
    marvelbusiness
    Participant

    @rrowley any other advice you could assist with please? I desparately need to get the invoice working.

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.