Errors, warnings & a fatal error after upgrading.

Permalink 1 user found helpful
Hey genius types!

Updated a site this morning to the new stuff. It broke. Here's the errors:

Warning: define() expects at least 2 parameters, 1 given in /home/firmly5/public_html/config/site.php on line 8

Warning: define() expects at least 2 parameters, 1 given in /home/firmly5/public_html/config/site.php on line 9

Warning: define() expects at least 2 parameters, 1 given in /home/firmly5/public_html/config/site.php on line 10

Warning: define() expects at least 2 parameters, 1 given in /home/firmly5/public_html/config/site.php on line 11

Warning: define() expects at least 2 parameters, 1 given in /home/firmly5/public_html/config/site.php on line 12

Warning: define() expects at least 2 parameters, 1 given in /home/firmly5/public_html/config/site.php on line 13

Warning: define() expects at least 2 parameters, 1 given in /home/firmly5/public_html/config/site.php on line 14

Warning: define() expects at least 2 parameters, 1 given in /home/firmly5/public_html/config/site.php on line 15

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/firmly5/public_html/config/site.php:8) in /home/firmly5/public_html/updates/concrete5.6.0.2/concrete/startup/session.php on line 36

Fatal error: Exception thrown without a stack frame in Unknown on line 0

I need to be a developer. But I'm a designer pretending to be a developer. So -- maybe you guys can help me figure out what's goin' on?

viriesque
 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
I can help you out if you are interested.

Rony
mhawke replied on at Permalink Reply
mhawke
Can you attach the file called site.php here?

You will need to rename it to site.txt or this forum won't attach it. It's probably a good idea to remove your database info from to beginning of the file before you post it.
viriesque replied on at Permalink Reply
viriesque
Here's what I've done so far I've changed lines 8-15 of site.php:
define('DIR_FILES_INCOMING' , '/home/firmly5/public_html/files/incoming');
define('DIR_FILES_TRASH' , '/home/firmly5/public_html/files/trash');
define('DIR_FILES_UPLOADED' , '/home/firmly5/public_html/files');
define('DIR_FILES_UPLOADED_THUMBNAILS' , '/home/firmly5/public_html/files/thumbnails');
define('DIR_FILES_UPLOADED_THUMBNAILS_LEVEL2' , '/home/firmly5/public_html/files/thumbnails/level2');
define('DIR_FILES_UPLOADED_THUMBNAILS_LEVEL3' , '/home/firmly5/public_html/files/thumbnails/level3');
define('DIR_FILES_AVATARS' , '/home/firmly5/public_html/files/avatars');
define('DIR_FILES_AVATARS_STOCK' , '/home/firmly5/public_html/files/stock_avatars');?><?php ?><?php ?><?php ?><?php ?><?php ?><?php define('DIRNAME_APP_UPDATED', 'concrete5.6.0.2');?>


Line 8, for example, used to look like this:
define('DIR_FILES_INCOMING  :  /home/firmly5/public_html/files/incoming');


The warnings have gone, but I still have this odd "Fatal error: Exception thrown without a stack frame in Unknown on line 0" thing going on.
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
There are so many unexpected php tags at the end line. Please remove those lines.

Rony
viriesque replied on at Permalink Reply
viriesque
<?php 
define('DIR_FILES_INCOMING' , '/home/firmly5/public_html/files/incoming');
define('DIR_FILES_TRASH' , '/home/firmly5/public_html/files/trash');
define('DIR_FILES_UPLOADED' , '/home/firmly5/public_html/files');
define('DIR_FILES_UPLOADED_THUMBNAILS' , '/home/firmly5/public_html/files/thumbnails');
define('DIR_FILES_UPLOADED_THUMBNAILS_LEVEL2' , '/home/firmly5/public_html/files/thumbnails/level2');
define('DIR_FILES_UPLOADED_THUMBNAILS_LEVEL3' , '/home/firmly5/public_html/files/thumbnails/level3');
define('DIR_FILES_AVATARS' , '/home/firmly5/public_html/files/avatars');
define('DIR_FILES_AVATARS_STOCK' , '/home/firmly5/public_html/files/stock_avatars');?><?php define('DIRNAME_APP_UPDATED', 'concrete5.6.0.2');?>
mhawke replied on at Permalink Reply
mhawke
Cut 'n Paste this and see if it helps. There should not be any "<?php" between line 7 and 8 unless line 7 ends with "?>" :
define('DIR_FILES_INCOMING' , '/home/firmly5/public_html/files/incoming');
define('DIR_FILES_TRASH' , '/home/firmly5/public_html/files/trash');
define('DIR_FILES_UPLOADED' , '/home/firmly5/public_html/files');
define('DIR_FILES_UPLOADED_THUMBNAILS' , '/home/firmly5/public_html/files/thumbnails');
define('DIR_FILES_UPLOADED_THUMBNAILS_LEVEL2' , '/home/firmly5/public_html/files/thumbnails/level2');
define('DIR_FILES_UPLOADED_THUMBNAILS_LEVEL3' , '/home/firmly5/public_html/files/thumbnails/level3');
define('DIR_FILES_AVATARS' , '/home/firmly5/public_html/files/avatars');
define('DIR_FILES_AVATARS_STOCK' , '/home/firmly5/public_html/files/stock_avatars');
define('DIRNAME_APP_UPDATED', 'concrete5.6.0.2');
viriesque replied on at Permalink Reply
viriesque
I've copied and pasted the code.

Still getting an error:

"Fatal error: Exception thrown without a stack frame in Unknown on line 0"

Is there some way to undo the update and revert?
viriesque replied on at Permalink Reply
viriesque
I found a solution to the problem here:

http://www.concrete5.org/community/forums/installation/upgrade-to-5...

It's not ideal, but it allows the site to function while I continue to figure out why the upgrade killed it.
mhawke replied on at Permalink Reply
mhawke
Sure.

How you revert depends on whether you have ever updated automatically before.

If you have more than one folders in your 'root/updates' folder. If you have more than one, then change the line in your 'config/site.php' file that defines 'DIRNAME_APP_UPDATED' to read:

define('DIRNAME_APP_UPDATED', 'concrete5.x.x.x');


Replace the x's with the folder name that represents the version just prior to 5.6.0.2.

If on the other hand, you only have a folder called 'concrete5.6.0.2' in your 'root/updates' folder then you need remove the line in your 'config/site.php that defines 'DIRNAME_APP_UPDATED'
mhawke replied on at Permalink Reply
mhawke
Sorry I was composing my answer when you posted your reference. Same answer though. Good luck.

The error message you are getting is hard to decifer because it isn't telling us the file that made it crash. Sounds very early in the process though. Does your site attempt to load at all or do you quickly get the stack error?
viriesque replied on at Permalink Reply
viriesque
It was pretty instant.

Also, it's the most unhelpful error message I've ever encountered...just sayin'.
mlane replied on at Permalink Reply
mlane
Hello, I too got the stack error and changed the version back with success (at the time). Then found that changing the root/blocks/autonav/templates folder to underscores instead of dashes allows my site to upgrade without issue.

However, I am attempting a custom template and my changes uploaded aren't the ones I'm seeing when refreshing the page. It's as if it's pulling data from an alternate location.

I saw the lines from the site.php file and mine have none of that information listed, all I have is my MYSQL info. and the version.

Could this be a cause of my issue and if so, how do I fix it?
mhawke replied on at Permalink Reply
mhawke
Make sure all your c5 caching is off at "Dashboard->System and Settings->Cache and Speed Settings" especially the 'overrides cache'.

The contents of your site.php is likely unrelated. The site.php above was broken.
mlane replied on at Permalink Reply
mlane
Thank you for your prompt response. My cache is all off and I've tried to edit my theme by uploading changes to the the default file and others. Sometimes it displays correctly, but the edit bar is never not there anymore even though I have the correct header_required information listed. I even skinned back all the files and left the main ones to try and narrow down if it were one of my files causing the issue but not one thing seems to be the issue.

I tried to refresh the database tables and it returns an error related to the Page Ear block which I had previously (long ago) uninstalled and moved to the trash.

I'm really at a loss and am at the pulling my hair out stage. All was fine until I allowed the update through the dashboard.

Any suggestions besides reinstall as I am on a shared hosting plan and have no access to the dreamhost cpanel for that. I am using SSH which dreamhost recently updated to SSH2 to transfer the files. Could it be a setting in the client?
mhawke replied on at Permalink Reply
mhawke
Is there a public URL we could look at?
mlane replied on at Permalink Reply
mlane
http://cottonandson.com
mlane replied on at Permalink Reply
mlane
I have activated the core theme Dark Chocolate while I researched a fix so if I need to change it back to my custom theme in order to assist you better let me know.
mlane replied on at Permalink Reply
mlane
Actually, the site just keeps cycling though the load, I can't even get it to load in order to change the theme back. I believe I'm just going to have to try a reinstall and start all over.
mhawke replied on at Permalink Reply
mhawke
I understand how easy it is to try everything to get your site back up. Changing the php files behind the scenes however might be a problem because C5 has some very specific requirements that you may not be aware of. Whenever this happens to me, I usually find that I was missing something as simple as a missing '>' on a div somewhere on the page that stops the C5 toolbar from being rendered.