SMF - Upgrading 1-19 to 2-7 (upgrade.php) - php

i decided to move my 1.1.19 to 2.07 and move to new directory.
but i couldn't upgrade my forum correctly. because:
repair_settings.php - (in bottom of page we got some error)
Notice: Undefined index: database_error in
/homepages/5/d394578306/htdocs/ResidentEvil/Sources/Subs-Db-mysql.php
on line 572
Fatal error: Call to undefined function allowedTo() in
/homepages/5/d394578306/htdocs/ResidentEvil/Sources/Subs-Db-mysql.php
on line 573
Upgrade.php - (we have many error on this page)
Notice: Undefined index: upgrade_progress in
/homepages/5/d394578306/htdocs/ResidentEvil/upgrade.php on line 3488
same error but on different lines.

Seems you're missing some files. Reupload all the Sources dir and the upgrade files with a software like WinSCP. Avoid FileZilla.

Related

Use of undefined constant DIR_CACHE - assumed 'DIR_CACHE'

I was trying to upgrade my opencart version 1.5.6.4 to the latest one, 3.0.2.0 and followed all the instructions and was able to do it. I did the install procedure from mysite.com/install but got the error 1051 which i fixed by a solution here.
Anyway, Now I have done everything, I am getting following code on
[homepage][1]:-
Notice: Use of undefined constant DIR_CACHE - assumed 'DIR_CACHE' in /home/msgcl/public_html/ocart/system/library/cache/file.php on line 9
Notice: Use of undefined constant DIR_CACHE - assumed 'DIR_CACHE' in /home/msgcl/public_html/ocart/system/library/cache/file.php on line 25
Notice: Use of undefined constant DIR_CACHE - assumed 'DIR_CACHE' in /home/msgcl/public_html/ocart/system/library/cache/file.php on line 63
Notice: Use of undefined constant DIR_CACHE - assumed 'DIR_CACHE' in /home/msgcl/public_html/ocart/system/library/cache/file.php on line 47
Notice: Use of undefined constant DIR_CACHE - assumed 'DIR_CACHE' in /home/msgcl/public_html/ocart/system/library/cache/file.php on line 25
Error: A theme has not beeareassigned to this store!
There are also two pop-ups I get after I log in from admin page with something like:
Syntax error - unexpected token > in JSON at position 0
any ideas what this could be referring to? Any help would be appreciated.
Not sure if this is the officially approved fix, but the following worked for me:
In your opencart folder, open the config.php and admin/config.php files and add the following lines to both (adjust the file paths for your installation):
define('DIR_MODIFICATION', '/your/Path/To/opencart/system/modification/');
define('DIR_CACHE', '/your/Path/To/opencart/system/cache/');
define('DIR_LOGS', '/your/Path/To/opencart/system/logs/');
I had similar errors for DIR_MODIFICATION and DIR_LOGS, hence three lines.
Also created the directories on the server in the system subfolder.
Credits for the jump start about he DIR_MODIFICATION error to:
http://www.betterhostreview.com/undefined-constant-dir_modification-opencart-error.html

WordPress "Notice: Undefined index: host" after initial setup running locally on linux

I'm trying to set up WordPress on my laptop running Kali Linux. Everything works until I install WordPress and the theme I am using. I'm trying to use roots sage on bedrock. But after I get through the installation process I get a notice in the admin:
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2937
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2937
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2999
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2999
And in the frontend:
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2999
Notice: Undefined index: host in /var/www/html/site/web/wp/wp-includes/theme.php on line 2999
Can anyone explain why I'm getting these notices? I must have missed something but I've gone through the instructions several times and I'm out of ideas. Thanks
You can define WP_HOME & WP_SITEURL in wp-config.php
define('WP_HOME','http://localhost/project_folder_name');
define('WP_SITEURL','http://localhost/project_folder_name');
This can also be caused by an error with the siteurl and home options in wp_options table.
Make sure the url's have a host as well, http://example.com not just example.com.
I just now came across this and for me, switching back from PHP 8.x.x to PHP 7.x.x resolved the issue.

Opencart Error after installing backup Notice: unserialize(): Error at offset

I get tons of this error:
Notice: unserialize(): Error at offset 0 of 205 bytes in /home/xtf/public_html/index.php on line 58
After a failed opencart upgrade atempt, i took all the files from my backup (Working backup) and replaced all files on the server.
I have not done any changes to the data in the MySQL database.
Do anyone have tip on how i can fix this error?
Is there a script i can run?
Line 58$config->set($result['key'], unserialize($result['value']));

phpvideotoolkit class errors on xampp installed on windows server 2008

find i m trying to convert sequence of images into a video. and for that i canme to know about the ffmpeg class.
the only wrapper class that i found is phpvideotoolkit but i m not able to work with it.
i installed phpvideotoolkit on xampp on my windows 2008 server . but it is throwing alor of errors
This example shows you how to extract a specific frame from a movie.
Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869
Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\MOV00007.3gp" was not found. No images were generated.
Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869
Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\Video000.3gp" was not found. No images were generated.
Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869
Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\cat.mpeg" was not found. No images were generated.
example
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\tmp\1336156630-4fa421d69357d\tmp_%d.jpg" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().
i m trying to make it work since last many hours but no luck
Also, for this code :
$srcFile = "test-mpeg.mpg";
$ffmpegObj = new ffmpeg_movie($srcFile);
i am gettign error that it cant file the file. i believe its something to do with permissions but i m not able to figure out
fpoen , fwrite , file_put_contents all are working fine without any permissions problems.
can anyone please guide me in the write direction. what do i need to do to make this phpvideotoolkit work

How to get the Ansinerator library to work?

I'm trying to get the Ansinerator library to work my on my localhost, but something's amiss.
I'm receiving the following errors:
Notice: Undefined index: hash in ansi.php on line 23 Notice: Undefined index: aml in ansi.php on line 37 Notice: Undefined variable: PNG_DESTRUCT in ansi.php on line 119 Notice: Undefined offset: -1 in ansi.php on line 362 Notice: Trying to get property of non-object in ansi.php on line 362 Notice: Undefined variable: links in ansi.php on line 459 Notice: Trying to get property of non-object in ansi.php on line 677 Notice: Undefined variable: links in ansi.php on line 459 Notice: Undefined variable: map_link in ansi.php on line 687
Any idea where am I going wrong with this one? I've installed the php-gd library, restarted the server, and while runs perfectly on production server, localhost will refuse. Ideas?
Thank you.
Check
- That you've got 'proper' versions of everything installed on localhost. (Compare localhost with production.) There's obviously something different between the 2 servers here, just use phpinfo() to check.
Restart localhost again? (Just kidding...)
Is it possible that you have set different error reporting levels on both servers?
Before anything, put error_reporting(E_ALL); at the top of your script on both servers and see if it runs perfectly. (My guess is you will get errors on both servers)

Categories