Error- Width must be an integer.

Permalink
Hi,

I keep getting this error:
"An unexpected error occurred.
Width must be an integer."

I haven't changed any codes anywhere. I just installed/and tried to install new items in add block part of admin panel, but now receive this error in everypage(even index.php/login page doesn't open and this error comes up. Does anyone else experienced this issue and what can I do to correct this? Thanks for your help.

 
JohntheFish replied on at Permalink Reply
JohntheFish
You don't give us much information to go on.

You say 'install new items' and 'width must be an integer', so perhaps there is a coding mistake in a new block you are trying to install. Perhaps to do with the 'width' of the edit dialog, a constant you need to set within the new block type controller.

Just a very wild guess. If it isn't in the right direction, we will need much more information to help. Screenshots. Stack trace etc.

You may be able to get into the dashboard directly, and that may work in spite of the error, by
yoursite.com/index.php/dashboard

Once there, set the diagnostics/debug options to give the maximum information on screen.
semihoktay replied on at Permalink Reply
Hi,

Thanks for your reply. Sorry, yes the reason for that was I was trying to add few blocks and haven't recognised which one did this error. I guess I am going to end up deleting Concrete5 and reinstall again, and do backup for next time because I can't reach any page now including dashboard.
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
If this is a fresh site, that is probably the quickest solution. You may not need to reinstall the core. If you have SSH access and are comfortable with command lines, there are command line options to reset a site that can provide the quickest way to reset.

https://documentation.concrete5.org/developers/appendix/cli-commands...

Next time, be sure to set full diagnostics and logging in the dashboard before you start developing any blocks.

Also, be aware there are big differences between the way you add a block that is part of a package (package installation) and installing a stand alone block in /application/
Tex59dk replied on at Permalink Reply
I had the same problem and I resolve it by deleting the folder 'troop_placeholder_images' in 'packages' folder.