Closed Vehemence26 closed 3 years ago
Hey, I've solved the 2nd common error with the includes error: During the setup wizard I incorrectly put in the wrong Site Root and Relative Path.
I'm still getting the class errors though
I've just realized they are all notices. All I need to do to get rid of them is change the php.ini to include:
error_reporting = E_ALL & ~E_NOTICE
I've just realized they are all notices. All I need to do to get rid of them is change the php.ini to include:
error_reporting = E_ALL & ~E_NOTICE
Hi, would you be able to run the install again and copy down in text the notices you're getting? I want to try to reduce the notices as much as possible since it's possible some people will be running this on systems where they don't have php.ini customization available to them.
Thanks, Erin
I've set up a comiccontrol version in a localhost environment as well as buying and setting up a version via cpanel through paid hosting. I've cleaned up the errors to remove duplicates or to only add call stack traces where I thought it was neccesary. but let me know if you need the full error_logs / call stack traces.
The local host errors that I'm getting are undefined variable
or undefined indexes / offset
.
-----------------------------------------
/comiccontrol/index.php
-----------------------------------------
Notice: Undefined offset: 2 in ...\comiccontrol\includes\classes.php on line 254
Notice: Undefined offset: 3 in ...\comiccontrol\includes\classes.php on line 255
Notice: Undefined offset: 1 in ...\comiccontrol\index.php on line 77
Notice: Undefined offset: 1 in ...\comiccontrol\includes\initialize.php on line 17
Call Stack
# Time Memory Function Location
1 0.0000 429504 {main}( ) ...\index.php:0
2 0.0000 926976 getSlug( $slugnum = 1 ) ...\index.php:92
Notice: Undefined offset: 1 in ...\comiccontrol\includes\initialize.php on line 17
Call Stack
# Time Memory Function Location
1 0.0000 429504 {main}( ) ...\index.php:0
2 0.0000 955400 require_once( '...\comiccontrol\includes\breadcrumbs.php ) ...\index.php:110
3 0.0000 955400 getSlug( $slugnum = 1 ) ...\breadcrumbs.php:5
Notice: Undefined offset: 2 in ...\comiccontrol\includes\initialize.php on line 17
Call Stack
# Time Memory Function Location
1 0.0000 429504 {main}( ) ...\index.php:0
2 0.0000 955400 require_once( '...\comiccontrol\includes\breadcrumbs.php ) ...\index.php:110
3 0.0000 955400 getSlug( $slugnum = 2 ) ...\breadcrumbs.php:106
-----------------------------------------
/comiccontrol/modules/comic/add-post
-----------------------------------------
Notice: Undefined index: comic-title in ...\comiccontrol\parts\comic-post-add.php on line 34
Notice: Undefined index: storyline in ...\comiccontrol\parts\comic-post-add.php on line 158
Notice: Undefined variable: current in ...\comiccontrol\includes\formfunctions.php on line 22
Notice: Undefined variable: current in ...\comiccontrol\includes\formfunctions.php on line 43
Notice: Undefined variable: needsparent in ...\comiccontrol\includes\formfunctions.php on line 74
Call Stack
# Time Memory Function Location
1 0.0000 431600 {main}( ) ...\index.php:0
2 0.0000 955032 require_once( '...\comiccontrol\parts\module.php ) ...\index.php:115
3 0.0000 998840 require_once( '...\comiccontrol\parts\comic-post-add.php ) ...\module.php:24
4 0.0000 1005192 buildForm( $forminputs = [0 => [0 => [...]], 1 => [0 => [...], 1 => [...]], 2 => [0 => [...]], 3 => [0 => [...]], 4 => [0 => [...]]] ) ...\comic-post-add.php:225
5 0.0000 1023576 buildFormInput( $options = ['type' => 'storylines', 'label' => 'Storyline', 'tooltip' => 'This is the chapter that your comic page will be listed in. If you have not created any chapters, the page will be listed as "uncategorized" when created.', 'name' => 'comic-storyline', 'regex' => 'storyline', 'current' => 0] ) ...\formfunctions.php:981
-----------------------------------------
/comiccontrol/modules/comic/manage-options
-----------------------------------------
Notice: Undefined index: page-title in ...\comiccontrol\parts\comic-options.php on line 9
Notice: Undefined variable: regex in ...\comiccontrol\includes\formfunctions.php on line 21
Notice: Undefined variable: regex in ...\comiccontrol\includes\formfunctions.php on line 13
Call Stack
# Time Memory Function Location
1 0.0000 431648 {main}( ) ...\index.php:0
2 0.0000 955080 require_once( '...\comiccontrol\parts\module.php ) ...\index.php:115
3 0.0000 987384 require_once( '...\comiccontrol\parts\comic-options.php ) ...\module.php:51
4 0.0000 1032608 buildForm( $forminputs = [0 => [0 => [...], 1 => [...]], 1 => [0 => [...], 1 => [...]], 2 => [0 => [...], 1 => [...]], 3 => [0 => [...], 1 => [...]]] ) ...\comic-options.php:246
5 0.0000 1048992 buildFormInput( $options = ['type' => 'text', 'label' => 'Next button text', 'tooltip' => 'This option determines what text will be displayed for the next navigation button. This can be left blank or can include an image tag.', 'name' => 'nexttext', 'current' => ''] ) ...\formfunctions
The reoccurring errors that I'm getting from my cpanel hosting error_log are similar:
PHP Notice: Undefined offset: 2 in .../comiccontrol/includes/classes.php on line 802
PHP Notice: Undefined offset: 2 in .../comiccontrol/includes/classes.php on line 909
PHP Notice: Undefined offset: 1 in .../comiccontrol/includes/classes.php on line 258
PHP Notice: Undefined offset: 2 in .../comiccontrol/includes/classes.php on line 588
PHP Notice: Undefined offset: 0 in .../comiccontrol/includes/classes.php on line 248
PHP Notice: Undefined index: comicname in .../index.php on line 65
PHP Notice: Undefined variable: ccplug in .../comiccontrol/includes/classes.php on line 1024
PHP Notice: Trying to get property 'slug' of non-object in .../comiccontrol/includes/classes.php on line 1024
PHP Fatal error: Uncaught Error: Call to undefined method CC_Gallery::navDisplay() in .../templates/basic/comicpage.php:32
One way to get rid of the Undefined xxx
errors would be check that those values exist by wrapping those lines in a if( isset() )
statement.
I've just gone through the installation process on local setup (I'm using XAMPP) and I've come across a point where I'm a little stuck. with all these screenshots, I've turned on xdebug.
The setup wizard was a little rough;
There's no front page loading
And clicking on any menu item in the dashboard (/comiccontrol) is not doing anything
From what I understand, I'm getting 2 common issues.
Any help with these problems would be greatly appreciated.