Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot see private message page. #600

Closed
luluwebmaster opened this issue Jul 11, 2019 · 2 comments
Closed

Cannot see private message page. #600

luluwebmaster opened this issue Jul 11, 2019 · 2 comments

Comments

@luluwebmaster
Copy link

luluwebmaster commented Jul 11, 2019

This should be fixed now!

You will need to pull the epoch project and run mix ecto.migrate

Then you need to pull the epochtalk project as well. You can now switch back to master branch if you aren't on it currently.

Originally posted by @akinsey in #571 (comment)

Hello,

After theses pull, I cannot see private message page.

Console error :

190711/141644.936, [error] message: Cannot read property 'subject' of null, stack: TypeError: Cannot read property 'subject' of null
    at /var/nodejs/cryptos-currencies.com/epochtalk/modules/ept-messages/db/messages/latest.js:55:39
    at bound (domain.js:425:14)
    at runBound (domain.js:438:12)
    at processImmediate (internal/timers.js:443:21)
    at process.topLevelDomainCallback (domain.js:136:23)
From previous event:
    at /var/nodejs/cryptos-currencies.com/epochtalk/modules/ept-messages/db/messages/latest.js:54:8
    at bound (domain.js:425:14)
    at runBound (domain.js:438:12)
    at bound (domain.js:425:14)
    at MappingPromiseArray.runBound (domain.js:438:12)
From previous event:
    at Object.module.exports [as latest] (/var/nodejs/cryptos-currencies.com/epochtalk/modules/ept-messages/db/messages/latest.js:50:4)
    at handler (/var/nodejs/cryptos-currencies.com/epochtalk/modules/ept-messages/routes/latest.js:47:43)
    at internals.handler (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/handler.js:101:51)
    at bound (domain.js:425:14)
    at runBound (domain.js:438:12)
    at Items.serial (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/handler.js:68:16)
    at done (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/items/lib/index.js:31:25)
    at done (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/items/lib/index.js:63:25)
    at pre (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/handler.js:54:24)
    at finalize (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/handler.js:291:20)
    at wrapped (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/node_modules/hoek/lib/index.js:879:20)
    at module.exports.internals.Response.internals.Response._processPrepare (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/response.js:548:16)
    at module.exports.internals.Response.internals.Response._prepare (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/response.js:476:21)
    at process.nextTick (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/reply.js:183:22)
    at processTicksAndRejections (internal/process/task_queues.js:79:9)
@akinsey
Copy link
Member

akinsey commented Jul 11, 2019

Hello @luluwebmaster, I invited you to the epochtalk slack if you'd like to join! We can help you resolve issues quicker there if youre interested!

Unfortunately this update wipes the messages table, this was a result of moving the table into a new schema with a different table structure for storing message content.

To fix the issue you are having you can just connect to the database and run the following commands, after that everything should start working again. Also make sure to pull the latest from master again, we are actively patching things. We patched some issues with the messages yesterday!

DELETE FROM messages.private_messages;
DELETE FROM messages.private_conversations;

Sorry for the inconvenience!

@luluwebmaster
Copy link
Author

It's now good, thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants