Jump to content

Featured Replies

Posted

I was including the need to insert a profile photo during registration, but after inserting the step, an error appeared and whenever I access the website home page, only the error log appears. How do I solve this?

Log after trying to create step:

Error: Object of class IPS\core\extensions\core\ProfileSteps\Photo could not be converted to string (0)
#0 /home/society/public_html/system/Db/Db.php(1232): IPS\Db->preparedQuery('UPDATE `core_pr...', Array)
#1 /home/society/public_html/system/Patterns/ActiveRecord.php(544): IPS\Db->update('`core_profile_s...', '`step_extension...', 'WHERE step_id=?')
#2 /home/society/public_html/system/Node/Model.php(2821): IPS\Patterns\ActiveRecord->save()
#3 /home/society/public_html/applications/core/modules/admin/membersettings/profilecompletion.php(150): IPS\Node\Model->save()
#4 /home/society/public_html/system/Dispatcher/Controller.php(128): IPS\core\modules\admin\membersettings\profilecompletion->form()
#5 /home/society/public_html/system/Node/Controller.php(117): IPS\Dispatcher\Controller->execute()
#6 /home/society/public_html/applications/core/modules/admin/membersettings/profilecompletion.php(84): IPS\Node\Controller->execute()
#7 /home/society/public_html/applications/core/modules/admin/membersettings/profiles.php(68): IPS\core\modules\admin\membersettings\profilecompletion->execute()
#8 /home/society/public_html/system/Dispatcher/Controller.php(128): IPS\core\modules\admin\membersettings\profiles->__call('form', Array)
#9 /home/society/public_html/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()
#10 /home/society/public_html/admin/index.php(15): IPS\Dispatcher->run()
#11 {main}

Error log that appears when accessing the Front-end:

TypeError: IPS\Member\ProfileStep::findExtensionFromAction(): Argument #1 ($key) must be of type string, null given, called in /home/society/public_html/system/Member/ProfileStep.php on line 461 (0)
#0 /home/society/public_html/system/Member/ProfileStep.php(461): IPS\Member\ProfileStep::findExtensionFromAction(NULL)
#1 /home/society/public_html/system/Patterns/ActiveRecord.php(360): IPS\Member\ProfileStep->get_extension()
#2 /home/society/public_html/system/Member/ProfileStep.php(501): IPS\Patterns\ActiveRecord->__get('extension')
#3 /home/society/public_html/system/Member/Member.php(5779): IPS\Member\ProfileStep->canComplete(Object(IPS\Member))
#4 /home/society/public_html/applications/core/Application.php(706): IPS\Member->profileCompletion()
#5 /home/society/public_html/system/Dispatcher/Front.php(947): IPS\core\Application->doMemberCheck()
#6 /home/society/public_html/system/Dispatcher/Front.php(302): IPS\Dispatcher\Front::doMemberCheck()
#7 /home/society/public_html/system/Dispatcher/Dispatcher.php(126): IPS\Dispatcher\Front->init()
#8 /home/society/public_html/index.php(16): IPS\Dispatcher::i()
#9 {main}

How it looked after the error:

image.png

Edited by Astronis

Solved by bskdisplay

Go to solution
  • Community Expert
  • Solution

Hi!

I had the exact same problem as you. I talked about it right here: https://invisioncommunity.com/forums/topic/482284-a-configuration-error-on-profile-filling/#comment-2995601

The site was more accessible for my members.

What you need to do is delete the table in the database, then go to Support in your ACP to check for database errors in order to automatically rebuild the database, this will delete the fields you created and your forum will work again.

They are fixing the problem internally for the next versions I believe

  • Author
 

Oi!

Eu tive exatamente o mesmo problema que você. Falei sobre isso aqui: https://invisioncommunity.com/forums/topic/482284-a-configuration-error-on-profile-filling/#comment-2995601

O site ficou mais acessível para meus membros.

O que você precisa fazer é excluir a tabela no banco de dados e, em seguida, ir até o Suporte no seu ACP para verificar se há erros no banco de dados para reconstruí-lo automaticamente. Isso excluirá os campos que você criou e seu fórum funcionará novamente.

Acredito que eles estão corrigindo o problema internamente para as próximas versões

I had to do this too. I also ran a command so I don't lose ID 1 when this is resolved. Could I have any problems with this?

ALTER TABLE core_profile_steps AUTO_INCREMENT = 1;

Could I have any problems with this?

Edited by Astronis

  • Community Expert

I'm not sure, but I think so... to be confirmed.

Every time I create a custom field, the errors come back immediately.

By the way, I just saw that they did a Beta 2 for version 5.0.5, and I think they fixed the problem.

Can you try deleting the table, rebuilding it via your administration's support, updating it, and trying to create a custom field?

  • Author
 

I'm not sure, but I think so... to be confirmed.

Every time I create a custom field, the errors come back immediately.

By the way, I just saw that they did a Beta 2 for version 5.0.5, and I think they fixed the problem.

Can you try deleting the table, rebuilding it via your administration's support, updating it, and trying to create a custom field?

With this command, I was able to create a new step with ID 1, but also with the same error. Well, it worked. I ran the command again and will wait for a stable version to be released. Thanks!

Edited by Astronis

  • Community Expert
 

I had to do this too. I also ran a command so I don't lose ID 1 when this is resolved. Could I have any problems with this?

ALTER TABLE core_profile_steps AUTO_INCREMENT = 1;

Could I have any problems with this?

It really doesnt matter what he ID is to you on the front end.

Recently Browsing 0

  • No registered users viewing this page.