A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match_all(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 690

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 690
Function: preg_match_all

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1223
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1086
Function: parse_charset

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: controllers/simple_html_dom.php

Line Number: 697

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 697
Function: _error_handler

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1223
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1086
Function: parse_charset

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 63
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match_all(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 690

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 690
Function: preg_match_all

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1129
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 64
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: controllers/simple_html_dom.php

Line Number: 697

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 697
Function: _error_handler

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1129
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 64
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 50
Function: _get_meta_view_details

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

How to resolve FB is not defined in Facebook Login | tutorialsmint.com

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 1385

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1385
Function: preg_match

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1189
Function: read_tag

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1083
Function: parse

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match_all(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 690

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 690
Function: preg_match_all

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1223
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1086
Function: parse_charset

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: controllers/simple_html_dom.php

Line Number: 697

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 697
Function: _error_handler

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1223
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1086
Function: parse_charset

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 97
Function: load

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 7
Function: str_get_html

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: preg_match_all(): Compilation failed: invalid range in character class at offset 4

Filename: controllers/simple_html_dom.php

Line Number: 690

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 690
Function: preg_match_all

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1129
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 8
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: controllers/simple_html_dom.php

Line Number: 697

Backtrace:

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 697
Function: _error_handler

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 508
Function: parse_selector

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/simple_html_dom.php
Line: 1129
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/questions_view.php
Line: 8
Function: find

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/views/pages/template.php
Line: 4
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/application/controllers/Question.php
Line: 54
Function: view

File: /home/i8bcism1o3mh/public_html/tutorialsmint.com/index.php
Line: 315
Function: require_once

FB is not defined error occurs when the function assigned to window.fbAsyncInit is run as soon as the SDK is loaded. Any code that you want to run after the SDK is loaded should be placed within this function and after the call to FB init. or Put the code inside $(document).ready function.
 
Check below working example Login with Facebook:

<html>
    <title>Facebook Login</title>
    <body>
        <div class="login-with-fb">
            <a href="#" id="call_facebook_login">Continue with Facebook</a>
        </div>
        <div id="fb-root"></div>
        <script>
            window.fbAsyncInit = function ()
            {
                FB.init
                        ({
                            appId: 'XXXX',
                            status: true,
                            cookie: true,
                            xfbml: true
                        });
            };

            (function () {
                var e = document.createElement('script');
                e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
                e.async = true;
                document.getElementById('fb-root').appendChild(e);
            }());

            /** Fb Login **/
            $(document).on("click", "#call_facebook_login", function () {
                Login();
            });

            function Login() {
                FB.login(function (response) {
                    if (response.authResponse) {
                        getUserInfo();
                    } else {
                        console.log('User cancelled login or did not fully authorize.');
                    }
                }, {scope: 'public_profile ,email'});
            }
            function getUserInfo() {
                FB.api('/me', {fields: "id,picture,email,first_name,gender,last_name,name"}, function (response) {
                    console.log(response);
                    var pic = response.picture;
                    var first_name = response.first_name;
                    var last_name = response.last_name;
                    var gender = response.gender;
                    var fb_id = response.id;
                    var email = response.email;
                    var profile_pic = pic.data.url;
                    var url = "URL of your REST API";
                    $.ajax({
                        type: "POST",
                        url: url,
                        data: {
                            first_name: first_name, last_name: last_name, gender: gender, fb_id: fb_id, email: email, profile_pic: profile_pic
                        },
                        dataType: "json",
                        success: function (data) {

                        }
                    });
                });
            }
            /** End of FB Login **/
        </script>
    </body>
</html


Written by
Check out this Author's contributed articles.
If you like Tutorialsmint and would like to contribute, you can also write an article using Write an Article. See your article appearing on the Tutorialsmint main page and help other programmers to enhance their knowledge.

Comments(0)

RECENT TUTORIALS
Wed Dec 26 • 08:00 AM GMT
Wed Dec 26 • 08:00 AM GMT
Wed Dec 26 • 08:00 AM GMT
Wed Dec 26 • 08:00 AM GMT
Edit Post
Add Reply