SimpleInvoices Group Forum › Forums › Fearless359 SimpleInvoices Discussion Group › I need help with Smarty Error
Tagged: hook.tpl
- This topic has 34 replies, 2 voices, and was last updated 3 days, 9 hours ago by
RRowley.
-
AuthorPosts
-
January 13, 2025 at 9:20 am #2106
RRowley
ParticipantWhat version of PHP are you running on? My production level is 8.1 which is the minimum level required by the SI 2023 version.
January 24, 2025 at 12:43 pm #2109marvelbusiness
ParticipantI now have a php.log file. Please find attached. Your help will be much appreciated @rrowley
Attachments:
January 24, 2025 at 12:45 pm #2111marvelbusiness
ParticipantI am running php 7.4. Installing v2019_2
January 27, 2025 at 6:00 am #2112RRowley
ParticipantSorry for not getting back to you sooner. Are you still stuck with this error? If so, what happens if you start with an empty database. This should load default data. I know this isn’t what you want, but it tests the process without updating any information from your existing database to just see if the process works. If it does, the problem would then appear to be data related. If it doesn’t, it is more likely configuration related.
Also, make sure the GD and INTL extensions are enabled for you PHP version. This is set in the php.ini file. To list what is enabled for your PHP version, use the phpinfo.php file in the simple invoices root directory. Edit this file and change the
$secure = true;
setting to false. Then run this file in your browser. After you are through using this file, change the setting back to true.January 27, 2025 at 6:39 am #2115RRowley
ParticipantAre you still stuck here? What is your PHP version and what SI version are you trying to upgrade to?
January 27, 2025 at 3:20 pm #2116marvelbusiness
ParticipantI am attempting to update to 2019 because I am on 2013 which was the very last one back in the day.
I am on php v7.4I will make an attempt to do a fresh install. In the meantime, attached is what I get from phpinfo
Attachments:
February 5, 2025 at 6:29 am #2123marvelbusiness
ParticipantFatal error: Non-abstract method Inc\Claz\Config::init() must contain body in */public_html/invoice/Inc/Claz/Config.php on line 31
That’s the new error I get now. I also did not get a php log file.
February 5, 2025 at 6:30 am #2124marvelbusiness
ParticipantThis is with a completely fresh install and an empty database
February 6, 2025 at 1:34 am #2125marvelbusiness
Participant@rrowley please help further. Thank you.
February 7, 2025 at 9:42 am #2126RRowley
ParticipantOK. I created a test on my development desktop. I have xampp installed with php version 8.2.12. This was set up with enabling of GD and INTL extensions. I downloaded the simpleinvoices-master_2023 version and extracted it into my xampp htdocs folder. For ease, I created a virtual host equating the simpleinvoices-master_2023 folder to master2023. I accessed master2023 from my browser and got the no database set up error. I then created an empty database. I already had a db user with full access, so I didn’t need to add this. I added the DB user, password and db name to my custom_config.ini file. I accessed the page from the browser again and got the create database screen. I accepted this and next got the essential data screen. I then chose to not install sample data and got the screen to create a biller, customer and product. I did this and was then able to create an invoice. This tells me that your issue is not with the clean install.
Can you tell me more about your directory structure; that your SI is installed underneath your document root directory, etc. The issues of not finding the non-abstract method error seems like a search path issue that your server is running into. Also, because SI is failing on the Config:init() method, the path for the application log file has not been established. This means the default log file is used. For my install, this is the C:\xampp\php\logs\php_error_log file. You should use phpinfo to determine what your default path is.
If you modify the $secure setting in the phpinfo.php file found in the root SI directory to be set to false, and then access this file from your browser, it will display all your php configuration info including the error log file path.
February 8, 2025 at 3:24 am #2127marvelbusiness
ParticipantThank you @rrowley. I am trying to install 2019 version. I will try with 2023 and get back to you. I really appreciate your responses and engagement.
February 8, 2025 at 6:25 am #2128marvelbusiness
ParticipantI have run 2019 on the following settings
PHP Version 8.2.27
PDO Driver for MySQL enabled
Client API version mysqlnd 8.2.27
error_log no value no valueWhen I run the application it does not now give any errors. I have to run 2019 because I am upgrading from 2013
February 8, 2025 at 9:45 am #2129RRowley
ParticipantIn custom_config.php, use the following setting.
zend.logger_level = DEBUG
This will record the entire process in the tmp/log/si.log file. Run your process and see if this file contains meaningful info. That is if it shows what steps the process has gone through and where it stopped. You can zip this file and attach it to your next post. Check the tmp/log/php.log file. If it contains info, zip and attach it also. If it doesn’t have info in it, check where you default PHP log file is being stored. This is set in the PHP configuration file. That should be where PHP logs errors up to the point where the config init step is completed and SI sends errors to the tmp/log/php.log file.
February 8, 2025 at 10:05 am #2130marvelbusiness
ParticipantFebruary 8, 2025 at 4:36 pm #2132marvelbusiness
ParticipantI can’t seem to move beyond this screen.
Attachments:
-
AuthorPosts
- You must be logged in to reply to this topic.
Recent Comments